LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 07-25-2004, 10:10 PM   #1
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Rep: Reputation: 30
tar -C option ?


I was just reading through the gentoo install guide. For one line they say use a -C option with tar.
tar -xvjf /mnt/cdrom/snapshots/portage-20040413.tar.bz2 -C /mnt/gentoo/usr

I do not understand what this is doing. The man pages say changes it to a directory(I think)

That does not make sence to me
 
Old 07-25-2004, 10:28 PM   #2
Russb
Member
 
Registered: Jul 2004
Location: Sembach AB, Germany
Distribution: Gentoo Linux
Posts: 65

Rep: Reputation: 15
I think it is implying that after you untar it, it will move it to the directory latter specified for you.

 
Old 07-25-2004, 10:29 PM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
As I understand it, it means it changes to that directory as in a temporary cd /mnt/gentoo/usr and that is where is untars the file to.
 
Old 07-25-2004, 10:36 PM   #4
shanenin
Member
 
Registered: Aug 2003
Location: Rochester, MN, U.S.A
Distribution: Gentoo
Posts: 987

Original Poster
Rep: Reputation: 30
thanks guys, I should have realized that.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
backup: tar with the -L option help Paxmaster Linux - Software 1 11-18-2005 08:06 PM
tar option Paxmaster Linux - Software 1 11-16-2005 07:27 AM
Using the Multiple tape option with TAR bassman Programming 0 07-08-2004 01:49 PM
tar command include option? x5452 Linux - General 7 05-20-2004 11:18 PM
tar bzip2 and the -y option mark33andathird Linux - General 1 04-30-2002 01:22 PM


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