descomparar tar.gz
tar -xvf file.tar.gz
nic0x801
tar -xvf file.tar.gz
# tar -xvf command will overwrite the files. Suppose if you use “-k” then it will keep your old files.
tar -xvf --overwrite archive.tar.gz
# compress
tar czvf < archive_name >.tar.gz < path >
# extract
tar xzvf < archive_name >.tar.gz
tar xzvf < archive_name >.tar.gz -C /home/usera/tmp
tar -xf archive.tar.gz
tar -xvf archive.tar.gz
or
tar -xf archive.tar.gz -C /home/linuxize/files
# compress
tar -czvf projects.tar.gz projects/
# extract
tar -xzvf projects.tar.gz
-c, --create
create a new archive
-x, --extract, --get
extract files from an archive
-z, --gzip, --gunzip --ungzip
-v, --verbose
verbosely list files processed
-f, --file ARCHIVE
use archive file or device ARCHIVE
tar [-] A --catenate --concatenate | c --create | d --diff --compare | --delete | r --append | t --list |
--test-label | u --update | x --extract --get [options] [pathname ...]