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 <command>
  • Persistent ⚖
--hole-detection [command]
  • Persistent ⚖
G,-G,--incremental
  • Persistent ⚖
--sparse-version <command>
  • 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 <command>
  • Persistent ⚖
--xattrs-include <command>
  • Persistent ⚖
--backup [command]
  • Persistent ⚖
C,-C,--directory <command>
  • Persistent ⚖
  • Repeatable ♾
--newer-mtime <command>
  • Persistent ⚖
--no-null
  • Persistent ⚖
--no-recursion
  • Persistent ⚖
--no-unquote
  • Persistent ⚖
--no-verbatim-files-from
  • Persistent ⚖
  • Repeatable ♾
-null
  • Persistent ⚖
--recursion
  • Persistent ⚖
--suffix <command>
  • Persistent ⚖
T,-T,--files-from <command>
  • Persistent ⚖
  • Repeatable ♾
--unquote
  • Persistent ⚖
--verbatim-files-from
  • Persistent ⚖
  • Repeatable ♾
X,-X,--exclude-from <command>
  • Persistent ⚖
  • Repeatable ♾
--index-file <command>
  • Persistent ⚖
--no-quote-chars <command>
  • Persistent ⚖
--quote-chars <command>
  • Persistent ⚖
--quoting-style <command>
  • Persistent ⚖
R,-R,--block-number
  • Persistent ⚖
--show-transformed-names,--show-stored-names
  • Persistent ⚖
--totals [command]
  • Persistent ⚖
v,-v,--verbose
  • Persistent ⚖
  • Repeatable ♾
w,-w,--interactive,--confirmationAsk for confirmation for every action