tar

Manipulating archive files

Subcommands

NameDescription
A, -A, --catenate, --concatenateAppend archive to the end of another archive
c, -c, --createCreate a new archive
d, -d, --diff, --compareFind differences between archive and file system
t, -t, --listList the contents of an archive
r, -r, --appendAppend files to the end of an archive
u, -u, --updateAppend files which are newer than the corresponding copy in the archive
x, -x, --extract, --getExtract files from an archive
--deleteDelete from the archive
--test-labelTest the archive volume label and exit
--show-defaultsShow built-in defaults for various tar options and exit
?, -?, --helpDisplay a short option summary and exit
--usageDisplay a list of available options and exit
--versionPrint program version and copyright information and exit

Options

NameDescription
g, -g, --listed-incremental <FILE>
  • Persistent ⚖
--hole-detection [METHOD]
  • Persistent ⚖
G, -G, --incremental
  • Persistent ⚖
--sparse-version <MAJOR[.MINOR]>
  • Persistent ⚖
S, -S, --sparse
  • Persistent ⚖
--ignore-command-error
  • Persistent ⚖
--no-ignore-command-error
  • Persistent ⚖
--numeric-owner
  • Persistent ⚖
--acls
  • Persistent ⚖
--no-acls
  • Persistent ⚖
--selinux
  • Persistent ⚖
--no-selinux
  • Persistent ⚖
--xattrs
  • Persistent ⚖
--no-xattrs
  • Persistent ⚖
--xattrs-exclude <PATTERN>
  • Persistent ⚖
--xattrs-include <PATTERN>
  • Persistent ⚖
--backup [CONTROL]
  • Persistent ⚖
C, -C, --directory <DIR>
  • Persistent ⚖
  • Repeatable ♾
--newer-mtime <DATE>
  • Persistent ⚖
--no-null
  • Persistent ⚖
--no-recursion
  • Persistent ⚖
--no-unquote
  • Persistent ⚖
--no-verbatim-files-from
  • Persistent ⚖
  • Repeatable ♾
-null
  • Persistent ⚖
--recursion
  • Persistent ⚖
--suffix <STRING>
  • Persistent ⚖
T, -T, --files-from <FILE>
  • Persistent ⚖
  • Repeatable ♾
--unquote
  • Persistent ⚖
--verbatim-files-from
  • Persistent ⚖
  • Repeatable ♾
X, -X, --exclude-from <FILE>
  • Persistent ⚖
  • Repeatable ♾
--index-file <FILE>
  • Persistent ⚖
--no-quote-chars <STRING>
  • Persistent ⚖
--quote-chars <STRING>
  • Persistent ⚖
--quoting-style <STYLE>
  • Persistent ⚖
R, -R, --block-number
  • Persistent ⚖
--show-transformed-names, --show-stored-names
  • Persistent ⚖
--totals [SIGNAL]
  • Persistent ⚖
v, -v, --verbose
  • Persistent ⚖
  • Repeatable ♾
w, -w, --interactive, --confirmationAsk for confirmation for every action