Specify a destination to extract a tar archive
It is very simple, say:
/root/file.tar.gz - gzipped tar archive file
/usr/local/tmp - destination location where above file needs to be extracted to.
command:
tar -xzf /root/file.tar.gz -C /usr/local/tmp
You might have already noticed '-C' option. This can be used to explicitly specify destination location if it is other than PWD.
Showing posts with label tar. Show all posts
Showing posts with label tar. Show all posts
Monday, June 21, 2010
Subscribe to:
Posts (Atom)