LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-03-2011, 11:53 AM   #1
Mcfestoe
LQ Newbie
 
Registered: May 2011
Location: Manchester UK
Posts: 6

Rep: Reputation: Disabled
-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.
 
Old 06-03-2011, 11:54 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
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".
 
Old 06-03-2011, 12:57 PM   #3
Mcfestoe
LQ Newbie
 
Registered: May 2011
Location: Manchester UK
Posts: 6

Original Poster
Rep: Reputation: Disabled
Many thanks

Read the help file and discovered that '-c' '-C' are not the same.
 
Old 06-03-2011, 02:18 PM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Please mark your thread as solved, using the "Thread Tools" at the top.
 
Old 11-06-2013, 12:03 PM   #5
diego lemelle
LQ Newbie
 
Registered: Sep 2012
Posts: 3

Rep: Reputation: Disabled
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
 
Old 11-06-2013, 02:10 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,131
Blog Entries: 2

Rep: Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833Reputation: 4833
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>
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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




All times are GMT -5. The time now is 11:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration