-c Create | -r Add/Replace -t List -u Update -x Extract | help |
-b, --block-size # | Specify the block size, in 512-byte records, for tape drive I/O. | help + man |
-f, --file filename | Read the archive from or write the archive to the specified file. | help + man |
-v, --verbose | Produce verbose output. | help + man |
-w, --confirmation, --interactive | Ask for confirmation for every action. | help + man |
-z, -j, -J, --lzma, --xz, --bzip, --bzip2, --bunzip2, --gunzip, --gzip | (c mode only) Compress the resulting archive with the original LZMA algorithm. | help + man + man + man + man |
--format ustar|pax|cpio|shar | (c, r, u mode only) Use the specified format for the created archive. | help + man |
--exclude pattern | Do not process files or directories that match the specified pattern. | help + man |
--mtime date | (c, r, u modes only) Set the modification times of added files to the specified date. | help + man |
--clamp-mtime | (use with --mtime) Only set the modification time if the file is newer than the date specified in --mtime. | help + man |
-C, --cd, --directory dir | In c and r mode, this changes the directory before adding the following files. | help + man |
-k, --keep-old-files | (x mode only) Do not overwrite existing files. | help + man |
-m, --modification-time | (x mode only) Do not extract modification time. | help + man |
-O, --to-stdout | (x, t modes only) In extract (-x) mode, files will be written to standard out rather than being extracted to disk. | help + man |
-p, --insecure, --preserve-permissions | Restore permissions (including ACLs, owner, file flags) | help + man |
-a, --auto-compress | (c mode only) Use the archive suffix to decide a set of the format and the compressions. (in the manual page but not in --help) | man |
--acls | (c, r, u, x modes only) Archive or extract POSIX.1e or NFSv4 ACLs. (in the manual page but not in --help) | man |
-B, --read-full-blocks | Ignored for compatibility with other tar(1) implementations. (in the manual page but not in --help) | man |
--b64encode | (c mode only) Encode the resulting archive with base64, after any compression. (in the manual page but not in --help) | man |
--chroot | (x mode only) chroot() to the current directory after processing any -C options and before extracting any files. (in the manual page but not in --help) | man |
--clear-nochange-fflags | (x mode only) Before removing file system objects to replace them, clear platform-specific file attributes or file flags that might prevent removal. (in the manual page but not in --help) | man |
--exclude-vcs | Do not process files or directories internally used by the version control systems ‘Arch’, ‘Bazaar’, ‘CVS’, ‘Darcs’, ‘Mercurial’, ‘RCS’, ‘SCCS’, ‘SVN’ and ‘git’. (in the manual page but not in --help) | man |
--fflags | (c, r, u, x modes only) Archive or extract platform-specific file attributes or file flags. (in the manual page but not in --help) | man |
--gid id | Use the provided group id number. (in the manual page but not in --help) | man |
--gname name | Use the provided group name. (in the manual page but not in --help) | man |
--group name[:gid | Use the provided group, if gid is not provided, name can be either a group name or numeric id. (in the manual page but not in --help) | man |
--grzip | (c mode only) Compress the resulting archive with grzip(1). (in the manual page but not in --help) | man |
-H | (c and r modes only) Symbolic links named on the command line will be followed; (in the manual page but not in --help) | man |
-h | (c and r modes only) Synonym for -L. (in the manual page but not in --help) | man |
-I | Synonym for -T. (in the manual page but not in --help) | man |
--help | Show usage. (in the manual page but not in --help) | man |
--hfsCompression | (x mode only) Mac OS X specific (v10.6 or later). (in the manual page but not in --help) | man |
--ignore-zeros | An alias of --options read_concatenated_archives for compatibility with GNU tar. (in the manual page but not in --help) | man |
--include pattern | Process only files or directories that match the specified pattern. (in the manual page but not in --help) | man |
--keep-newer-files | (x mode only) Do not overwrite existing files that are newer than the versions appearing in the archive being extracted. (in the manual page but not in --help) | man |
-L, --dereference | (c and r modes only) All symbolic links will be followed. (in the manual page but not in --help) | man |
-l, --check-links | (c and r modes only) Issue a warning message unless all links to each file are archived. (in the manual page but not in --help) | man |
--lrzip | (c mode only) Compress the resulting archive with lrzip(1). (in the manual page but not in --help) | man |
--lz4 | (c mode only) Compress the archive with lz4-compatible compression before writing it. (in the manual page but not in --help) | man |
--lzip | (c mode only) Compress the archive with lzip-compatible compression before writing it. (in the manual page but not in --help) | man |
--zstd | (c mode only) Compress the archive with zstd-compatible compression before writing it. (in the manual page but not in --help) | man |
--lzop | (c mode only) Compress the resulting archive with lzop(1). (in the manual page but not in --help) | man |
--mac-metadata | (c, r, u and x mode only) Mac OS X specific. (in the manual page but not in --help) | man |
--mode permissions | Modify the file mode bits. (in the manual page but not in --help) | man |
-n, --norecurse, --no-recursion | Do not operate recursively on the content of directories. (in the manual page but not in --help) | man |
--newer date | (c, r, u modes only) Only include files and directories newer than the specified date. (in the manual page but not in --help) | man |
--newer-mtime date | (c, r, u modes only) Like --newer, except it compares mtime entries instead of ctime entries. (in the manual page but not in --help) | man |
--newer-than file | (c, r, u modes only) Only include files and directories newer than the specified file. (in the manual page but not in --help) | man |
--newer-mtime-than file | (c, r, u modes only) Like --newer-than, except it compares mtime entries instead of ctime entries. (in the manual page but not in --help) | man |
--nodump | (c and r modes only) Honor the nodump file flag by skipping this file. (in the manual page but not in --help) | man |
--nopreserveHFSCompression | (x mode only) Mac OS X specific (v10.6 or later). (in the manual page but not in --help) | man |
--null | (use with -I or -T) Filenames or patterns are separated by null characters, not by newlines. (in the manual page but not in --help) | man |
--no-acls | (c, r, u, x modes only) Do not archive or extract POSIX.1e or NFSv4 ACLs. (in the manual page but not in --help) | man |
--no-fflags | (c, r, u, x modes only) Do not archive or extract file attributes or file flags. (in the manual page but not in --help) | man |
--no-mac-metadata | (c, r, u and x mode only) Mac OS X specific. (in the manual page but not in --help) | man |
--no-read-sparse | (c, r, u modes only) Do not read sparse file information from disk. (in the manual page but not in --help) | man |
--no-safe-writes | (x mode only) Do not create temporary files and use rename(2) to replace the original ones. (in the manual page but not in --help) | man |
--no-same-owner | (x mode only) Do not extract owner and group IDs. (in the manual page but not in --help) | man |
--no-same-permissions | (x mode only) Do not extract full permissions (SGID, SUID, sticky bit, file attributes or file flags, extended file attributes and ACLs). (in the manual page but not in --help) | man |
--no-xattrs | (c, r, u, x modes only) Do not archive or extract extended file attributes. (in the manual page but not in --help) | man |
--numeric-owner | This is equivalent to --uname "" --gname "". (in the manual page but not in --help) | man |
-o | (x mode) Use the user and group of the user running the program rather than those specified in the archive. (in the manual page but not in --help) | man |
--older date | (c, r, u modes only) Only include files and directories older than the specified date. (in the manual page but not in --help) | man |
--older-mtime date | (c, r, u modes only) Like --older, except it compares mtime entries instead of ctime entries. (in the manual page but not in --help) | man |
--older-than file | (c, r, u modes only) Only include files and directories older than the specified file. (in the manual page but not in --help) | man |
--older-mtime-than file | (c, r, u modes only) Like --older-than, except it compares mtime entries instead of ctime entries. (in the manual page but not in --help) | man |
--one-file-system | (c, r, and u modes) Do not cross mount points. (in the manual page but not in --help) | man |
--options options | Select optional behaviors for particular modules. (in the manual page but not in --help) | man |
-P, --absolute-paths | Preserve pathnames. (in the manual page but not in --help) | man |
--passphrase passphrase | The passphrase is used to extract or create an encrypted archive. (in the manual page but not in --help) | man |
--posix | (c, r, u mode only) Synonym for --format pax (in the manual page but not in --help) | man |
-q, --fast-read | (x and t mode only) Extract or list only the first archive entry that matches each pattern or filename operand. (in the manual page but not in --help) | man |
--read-sparse | (c, r, u modes only) Read sparse file information from disk. (in the manual page but not in --help) | man |
-S | (x mode only) Extract files as sparse files. (in the manual page but not in --help) | man |
-s pattern | Modify file or archive member names according to pattern. (in the manual page but not in --help) | man |
--safe-writes | (x mode only) Extract files atomically. (in the manual page but not in --help) | man |
--same-owner | (x mode only) Extract owner and group IDs. (in the manual page but not in --help) | man |
--strip-components count | Remove the specified number of leading path elements. (in the manual page but not in --help) | man |
-T, --files-from filename | In x or t mode, tar will read the list of names to be extracted from filename. (in the manual page but not in --help) | man |
--totals | (c, r, u modes only) After archiving all files, print a summary to stderr. (in the manual page but not in --help) | man |
-U, --unlink, --unlink-first | (x mode only) Unlink files before creating them. (in the manual page but not in --help) | man |
--uid id | Use the provided user id number and ignore the user name from the archive. (in the manual page but not in --help) | man |
--uname name | Use the provided user name. (in the manual page but not in --help) | man |
--use-compress-program program | Pipe the input (in x or t mode) or the output (in c mode) through program instead of using the builtin compression support. (in the manual page but not in --help) | man |
--uuencode | (c mode only) Encode the resulting archive with uuencode(1), after any compression. (in the manual page but not in --help) | man |
--owner name[:uid | Use the provided user, if uid is not provided, name can be either a username or numeric id. (in the manual page but not in --help) | man |
--version | Print version of tar and libarchive, and exit. (in the manual page but not in --help) | man |
-X, --exclude-from filename | Read a list of exclusion patterns from the specified file. (in the manual page but not in --help) | man |
--xattrs | (c, r, u, x modes only) Archive or extract extended file attributes. (in the manual page but not in --help) | man |
-y | (c mode only) Compress the resulting archive with bzip2(1). (in the manual page but not in --help) | man |
-Z, --compress, --uncompress | (c mode only) Compress the resulting archive with compress(1). (in the manual page but not in --help) | man |