extract the tar file
Hi Guys,
How do I extract a tar file from one directory to another. e.g /data1/test.tar to /data2 Thanks.... Please help!!!!!!!!!!!! |
Check the -C option of tar (C uppercase).
|
Thanks for the reply...
Lest say I have the file like /data1/test.tar and I normally use tar -xvf test.tar. Now I want to untar this file to a different directory...how do I redirect the extract to that directory? Thanks... |
if this is a terminal only headless set up then use the terminal
BUT if you have gnome or KDE installed ( or any desktop environment) why not use the gui for Gnome that is "file-roller" just double click on the tar file and use that . |
Thanks,
I don' have access of GUI--how can I perform that using command. |
the very first step would to read the output of two commands
the man page and the help page Code:
tar --help and in the help ( -- help) almost every ( about 99.9% ) linux program has a help page . and most have a manual |
Quote:
Code:
tar -xvf /data1/test.tar -C /data2/ |
Alternatively, you could navigate to the target directory and execute the tar command from there. That's pretty much what the -C option does anyway.
Code:
cd /data2 |
All times are GMT -5. The time now is 06:14 PM. |