LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   -Acdtrux - what does it mean (https://www.linuxquestions.org/questions/linux-newbie-8/acdtrux-what-does-it-mean-884348/)

Mcfestoe 06-03-2011 10:53 AM

-Acdtrux - what does it mean
 
What have i missed out ?

[root /romtools]# tar -xzf linux-2.6.16-raq4-source.tar.gz -c /usr/src
tar: You may not specify more than one `-Acdtrux' option
Try `tar --help' for more information.

Nylex 06-03-2011 10:54 AM

You need to use -C to change directories. -c is to create a tar file, which obviously conflicts with -x for extracting from one. Like it says, run "tar --help" for more information, or look at the man page with "man tar".

Mcfestoe 06-03-2011 11:57 AM

Many thanks

Read the help file and discovered that '-c' '-C' are not the same.

Nylex 06-03-2011 01:18 PM

Please mark your thread as solved, using the "Thread Tools" at the top.

diego lemelle 11-06-2013 11:03 AM

i m try extraxt this download

http://heasarc.gsfc.nasa.gov/FTP/ret...wse-196111.tar.

when i tape tar -zf <bame.tar> i m receive this message too

tar: You must specify one of the `-Acdtrux' or `--test-label' options
Try `tar --help' or `tar --usage' for more information.

i m in ubuntu 12.* now, bur in slackware thre no problem

TobiSGD 11-06-2013 01:10 PM

The command switch for extraction with tar is x, for creating a tar file is c, but you have neither in your command so tar does not know what to do and exits.
Your command should look like
Code:

tar xf <bame.tar>


All times are GMT -5. The time now is 10:49 AM.