tar - an archiving utility
Options:
##############################################################
-p, --preserve-permissions
-C DIR # change to directory DIR
-c, --create # create a new archive
-t, --list # list the contents of an archive
-x, --extract # extract files from an archive
-f ARCHIVE # use archive file
-j, --bzip2
-J, --xz
-z, --gzip
-v, --verbose
##############################################################
--exclude=PATTERN # exclude files, given as a PATTERN
--newer-mtime=DATE
tar -zpcv -f Archive.tar.gz File...

tar -jpcv -f Archive.tar.bz2 File...

tar -Jpcv -f Archive.tar.xz File...

tar -tvf ARCHIVE

tar -xvf ARCHIVE -C DIR

原文:https://www.cnblogs.com/zakzhu/p/11632960.html