Results 1 to 4 of 4
Hello,
is there a simple method to provide a directory into which a tar archive is to be decompressed?
Code:
tar xvzf example.tar.gz
will untar it into the current directory. ...
- 10-18-2009 #1Just Joined!
- Join Date
- Sep 2009
- Posts
- 32
[SOLVED] untar into a given directory
Hello,
is there a simple method to provide a directory into which a tar archive is to be decompressed?
will untar it into the current directory. What is the way to change that?Code:tar xvzf example.tar.gz
Thanks in advance,
IH
- 10-19-2009 #2
I usually cd into the appropriate folder first and then tar x.
There may also be another way but this works for me.Pete
- 10-19-2009 #3Linux Newbie
- Join Date
- Sep 2004
- Location
- UK
- Posts
- 160
From the man page :
tar -C <dir_to_untar_into> xvzf example.tar.gzIn a world without walls and fences, who needs Windows and Gates?
- 10-19-2009 #4Just Joined!
- Join Date
- Sep 2009
- Posts
- 32
Thank both of you
- I overlooked the -C option.


