LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2019, 05:01 AM   #1
Cworrior
LQ Newbie
 
Registered: Mar 2019
Posts: 1

Rep: Reputation: Disabled
Resolving tar: you must specify ‘-Acdtrux’, ‘- -delete’ or ‘- -test-lable ‘ options


Hi how do I resolve the following code line considering the subject
:/tmp# tar -C /usr/local/ .xvzf ./executable-v8-Linux-64bit.zip
 
Old 03-24-2019, 05:19 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,847

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
you need to speficy tar options as -letter[s], so
Code:
#instead of:
tar -C /usr/local/ .xvzf ./executable-v8-Linux-64bit.zip
this would be probably better:
tar -C /usr/local/ -xvzf ./executable-v8-Linux-64bit.zip
by the way, what is that . (dot) before x ?
 
Old 03-24-2019, 05:58 AM   #3
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by Cworrior View Post
Hi how do I resolve the following code line considering the subject
:/tmp# tar -C /usr/local/ .xvzf ./executable-v8-Linux-64bit.zip
A .zip file is NOT a tar archive, so cannot be unpacked BY it.
Try unzip instead.
 
Old 03-24-2019, 06:14 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,847

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
tar -z means: Filter the archive through gzip(1). (see man page)
 
Old 03-24-2019, 06:28 AM   #5
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by pan64 View Post
by the way, what is that . (dot) before x ?
One possibility is copy and paste from a PDF or other non-text file, where the dash was not a simple ASCII dash.

By the way, tar is special since many options don't require a dash, e.g. tar tvf myarchive.tgz. This has been so since the early UNIX years.

And finally, I have no idea what the title of this question has to do with its content. Perhaps it's an error message?

Last edited by berndbausch; 03-24-2019 at 06:31 AM.
 
Old 03-24-2019, 06:36 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,847

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
Quote:
Originally Posted by berndbausch View Post

And finally, I have no idea what the title of this question has to do with its content. Perhaps it's an error message?
yes, dash can be ignored only at the first argument, which is now -C. From this point tar has no idea what to do, that's why "you must specify ‘-Acdtrux’, ‘--delete’ or ‘--test-lable ‘ options".
 
Old 03-24-2019, 11:26 AM   #7
ehartman
Senior Member
 
Registered: Jul 2007
Location: Delft, The Netherlands
Distribution: Slackware
Posts: 1,674

Rep: Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888Reputation: 888
Quote:
Originally Posted by pan64 View Post
tar -z means: Filter the archive through gzip(1). (see man page)
I know, but that only works when there's only a single file in the .zip as gzip cannot handle multiple output files (when expanding only one compressed file):
Quote:
Files created by zip can be uncompressed by gzip only if they have a single member compressed with the 'deflation' method. This feature is only intended to help conversion of tar.zip files to the tar.gz format.
 
Old 03-24-2019, 11:51 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,847

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
no, it is going to work in the reverse order: using tar -cz (creating a compressed archive) tar will first create the "result" tar file and will send thru gzip instead of saving that.
using tar -xzf will first gunzip the given file and the result will be untarred.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] You may not specify more than one '-Acdtrux', '--delete' or '--test-label' option. Brovashift2 Linux - Newbie 3 06-05-2016 06:35 PM
-Acdtrux - what does it mean Mcfestoe Linux - Newbie 5 11-06-2013 01:10 PM
[SOLVED] Acdtrux options when compress backup.tar file .. thiyagusham Linux - Newbie 2 01-18-2013 12:37 AM
it shows me "must have a GPT disk lable"when i install centos 6.3 on a win7 nullne Linux - Desktop 3 01-15-2013 05:37 PM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration