Saves many files together into a single archive file, and restores individual files from the archive. Includes automatic archive compression/decompression options and special features for incremental and full backups.
# (list contents of archive somefile.tar)$tartvfsomefile.tar
# (extract contents of somefile.tar)$tarxvfsomefile.tar
# (extract contents of gzipped archive somefile.tar.gz)$tarxzvfsomefile.tar.gz
# (extract contents of bzip2 archive somefile.tar.bz2)$tarxjvfsomefile.tar.bz2
# (archive all ".c" files in current directory into one archive file)$tarcvfsomefile.tar*.c
# (archive and gzip-compress all files in a directory into one archive file)$tarczvfsomefile.tar.gzsomedirectory/
# (archive and bzip2-compress all files in a directory into one archive file)$tarcjvfsomefile.tar.bz2somedirectory/
Other arguments for tar can be explored by using the man tar command.