Hi,
How to extract a tar.gz file and put it under a designated folder that I specify in a one line command?
thank you in advance.
Hi,
How to extract a tar.gz file and put it under a designated folder that I specify in a one line command?
thank you in advance.
Hi,
cd /destinationfolder && pax -r < files.tar
has one inconvenient:
it does a cd to destinationfolder.
I want to stay where the script was executed.
thanks
gzip -dc /<Source Location.gz> | tar xf -
gzip -dc archive.tar.gz | tar -xf - -C /destination
or, with GNU tar
tar xzf archive.tar.gz -C /destination