LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-01-2004, 01:29 PM   #1
mnauta
Member
 
Registered: Apr 2003
Posts: 152

Rep: Reputation: Disabled
redirect untar output


Probably asked before, but I could not find it with search.

I have backup tar files in /data/backupfiles directory, but I want untar the files in there to /data.

How would I write the "tar -xzvf files.tar.gz" command so it would place the files in /data

thanks
manuel
 
Old 05-01-2004, 04:20 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Tried reading the documentation yet? :)

Code:
man tar
-I
/directory


Cheers,
Tink
 
Old 05-01-2004, 04:52 PM   #3
mnauta
Member
 
Registered: Apr 2003
Posts: 152

Original Poster
Rep: Reputation: Disabled
Quote:
Originally posted by Tinkster
Tried reading the documentation yet?

Code:
man tar
-I
/directory


Cheers,
Tink
Well, Guru, as a matter of fact I have read them. However "-j, -I, --bzip
filter the archive through bzip2. Note: -I is deprecated and may get a different meaning in the near future. " did not seem to work for what I wanted to do.

The answer is probably right in those man pages, but I can't see it at this point.

Thanks
manuel
 
Old 05-01-2004, 07:21 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Actually you were meant to type
-I
/directory
while in tar's man-page, which would
have lead you right to the option you're
looking for ...


Cheers,
Tink
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to redirect the output of a terminal? cpukiller Linux - Networking 5 11-10-2004 07:07 AM
Redirect output to multiple places granny Linux - Newbie 1 02-12-2004 12:31 PM
output from cpio won't redirect to file rawii Programming 5 01-27-2004 01:49 PM
Ambiguous output redirect XFox Linux - Newbie 5 10-17-2003 07:29 PM
please help, simple question about redirect output kool Linux - General 4 03-18-2002 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:57 PM.

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