Blame doc/text/bsdtar.1.txt

Packit Service 1d0348
TAR(1)			  BSD General Commands Manual			TAR(1)
Packit Service 1d0348
Packit Service 1d0348
NAME
Packit Service 1d0348
     tar — manipulate tape archives
Packit Service 1d0348
Packit Service 1d0348
SYNOPSIS
Packit Service 1d0348
     tar [bundled-flags ⟨args⟩] [⟨file⟩ | ⟨pattern⟩ ...]
Packit Service 1d0348
     tar {-c} [options] [files | directories]
Packit Service 1d0348
     tar {-r | -u} -f archive-file [options] [files | directories]
Packit Service 1d0348
     tar {-t | -x} [options] [patterns]
Packit Service 1d0348
Packit Service 1d0348
DESCRIPTION
Packit Service 1d0348
     tar creates and manipulates streaming archive files.  This implementation
Packit Service 1d0348
     can extract from tar, pax, cpio, zip, jar, ar, xar, rpm, 7-zip, and ISO
Packit Service 1d0348
     9660 cdrom images and can create tar, pax, cpio, ar, zip, 7-zip, and shar
Packit Service 1d0348
     archives.
Packit Service 1d0348
Packit Service 1d0348
     The first synopsis form shows a “bundled” option word.  This usage is
Packit Service 1d0348
     provided for compatibility with historical implementations.  See COMPATI‐
Packit Service 1d0348
     BILITY below for details.
Packit Service 1d0348
Packit Service 1d0348
     The other synopsis forms show the preferred usage.  The first option to
Packit Service 1d0348
     tar is a mode indicator from the following list:
Packit Service 1d0348
     -c      Create a new archive containing the specified items.  The long
Packit Service 1d0348
	     option form is --create.
Packit Service 1d0348
     -r      Like -c, but new entries are appended to the archive.  Note that
Packit Service 1d0348
	     this only works on uncompressed archives stored in regular files.
Packit Service 1d0348
	     The -f option is required.  The long option form is --append.
Packit Service 1d0348
     -t      List archive contents to stdout.  The long option form is --list.
Packit Service 1d0348
     -u      Like -r, but new entries are added only if they have a modifica‐
Packit Service 1d0348
	     tion date newer than the corresponding entry in the archive.
Packit Service 1d0348
	     Note that this only works on uncompressed archives stored in reg‐
Packit Service 1d0348
	     ular files.  The -f option is required.  The long form is
Packit Service 1d0348
	     --update.
Packit Service 1d0348
     -x      Extract to disk from the archive.	If a file with the same name
Packit Service 1d0348
	     appears more than once in the archive, each copy will be
Packit Service 1d0348
	     extracted, with later copies overwriting (replacing) earlier
Packit Service 1d0348
	     copies.  The long option form is --extract.
Packit Service 1d0348
Packit Service 1d0348
     In -c, -r, or -u mode, each specified file or directory is added to the
Packit Service 1d0348
     archive in the order specified on the command line.  By default, the con‐
Packit Service 1d0348
     tents of each directory are also archived.
Packit Service 1d0348
Packit Service 1d0348
     In extract or list mode, the entire command line is read and parsed
Packit Service 1d0348
     before the archive is opened.  The pathnames or patterns on the command
Packit Service 1d0348
     line indicate which items in the archive should be processed.  Patterns
Packit Service 1d0348
     are shell-style globbing patterns as documented in tcsh(1).
Packit Service 1d0348
Packit Service 1d0348
OPTIONS
Packit Service 1d0348
     Unless specifically stated otherwise, options are applicable in all oper‐
Packit Service 1d0348
     ating modes.
Packit Service 1d0348
Packit Service 1d0348
     @archive
Packit Service 1d0348
	     (c and r modes only) The specified archive is opened and the
Packit Service 1d0348
	     entries in it will be appended to the current archive.  As a sim‐
Packit Service 1d0348
	     ple example,
Packit Service 1d0348
		   tar -c -f - newfile @original.tar
Packit Service 1d0348
	     writes a new archive to standard output containing a file newfile
Packit Service 1d0348
	     and all of the entries from original.tar.	In contrast,
Packit Service 1d0348
		   tar -c -f - newfile original.tar
Packit Service 1d0348
	     creates a new archive with only two entries.  Similarly,
Packit Service 1d0348
		   tar -czf - --format pax @-
Packit Service 1d0348
	     reads an archive from standard input (whose format will be deter‐
Packit Service 1d0348
	     mined automatically) and converts it into a gzip-compressed pax-
Packit Service 1d0348
	     format archive on stdout.	In this way, tar can be used to con‐
Packit Service 1d0348
	     vert archives from one format to another.
Packit Service 1d0348
Packit Service 1d0348
     -a, --auto-compress
Packit Service 1d0348
	     (c mode only) Use the archive suffix to decide a set of the for‐
Packit Service 1d0348
	     mat and the compressions.	As a simple example,
Packit Service 1d0348
		   tar -a -cf archive.tgz source.c source.h
Packit Service 1d0348
	     creates a new archive with restricted pax format and gzip com‐
Packit Service 1d0348
	     pression,
Packit Service 1d0348
		   tar -a -cf archive.tar.bz2.uu source.c source.h
Packit Service 1d0348
	     creates a new archive with restricted pax format and bzip2 com‐
Packit Service 1d0348
	     pression and uuencode compression,
Packit Service 1d0348
		   tar -a -cf archive.zip source.c source.h
Packit Service 1d0348
	     creates a new archive with zip format,
Packit Service 1d0348
		   tar -a -jcf archive.tgz source.c source.h
Packit Service 1d0348
	     ignores the “-j” option, and creates a new archive with
Packit Service 1d0348
	     restricted pax format and gzip compression,
Packit Service 1d0348
		   tar -a -jcf archive.xxx source.c source.h
Packit Service 1d0348
	     if it is unknown suffix or no suffix, creates a new archive with
Packit Service 1d0348
	     restricted pax format and bzip2 compression.
Packit Service 1d0348
Packit Service 1d0348
     --acls  (c, r, u, x modes only) Archive or extract POSIX.1e or NFSv4
Packit Service 1d0348
	     ACLs. This is the reverse of --no-acls and the default behavior
Packit Service 1d0348
	     in c, r, and u modes (except on Mac OS X) or if tar is run in x
Packit Service 1d0348
	     mode as root. On Mac OS X this option translates extended ACLs to
Packit Service 1d0348
	     NFSv4 ACLs. To store extended ACLs the --mac-metadata option is
Packit Service 1d0348
	     preferred.
Packit Service 1d0348
Packit Service 1d0348
     -B, --read-full-blocks
Packit Service 1d0348
	     Ignored for compatibility with other tar(1) implementations.
Packit Service 1d0348
Packit Service 1d0348
     -b blocksize, --block-size blocksize
Packit Service 1d0348
	     Specify the block size, in 512-byte records, for tape drive I/O.
Packit Service 1d0348
	     As a rule, this argument is only needed when reading from or
Packit Service 1d0348
	     writing to tape drives, and usually not even then as the default
Packit Service 1d0348
	     block size of 20 records (10240 bytes) is very common.
Packit Service 1d0348
Packit Service 1d0348
     -C directory, --cd directory, --directory directory
Packit Service 1d0348
	     In c and r mode, this changes the directory before adding the
Packit Service 1d0348
	     following files.  In x mode, change directories after opening the
Packit Service 1d0348
	     archive but before extracting entries from the archive.
Packit Service 1d0348
Packit Service 1d0348
     --chroot
Packit Service 1d0348
	     (x mode only) chroot() to the current directory after processing
Packit Service 1d0348
	     any -C options and before extracting any files.
Packit Service 1d0348
Packit Service 1d0348
     --clear-nochange-fflags
Packit Service 1d0348
	     (x mode only) Before removing file system objects to replace
Packit Service 1d0348
	     them, clear platform-specific file flags that might prevent
Packit Service 1d0348
	     removal.
Packit Service 1d0348
Packit Service 1d0348
     --exclude pattern
Packit Service 1d0348
	     Do not process files or directories that match the specified pat‐
Packit Service 1d0348
	     tern.  Note that exclusions take precedence over patterns or
Packit Service 1d0348
	     filenames specified on the command line.
Packit Service 1d0348
Packit Service 1d0348
     --fflags
Packit Service 1d0348
	     (c, r, u, x modes only) Archive or extract file flags. This is
Packit Service 1d0348
	     the reverse of --no-fflags and the default behavior in c, r, and
Packit Service 1d0348
	     u modes or if tar is run in x mode as root.
Packit Service 1d0348
Packit Service 1d0348
     --format format
Packit Service 1d0348
	     (c, r, u mode only) Use the specified format for the created ar‐
Packit Service 1d0348
	     chive.  Supported formats include “cpio”, “pax”, “shar”, and
Packit Service 1d0348
	     “ustar”.  Other formats may also be supported; see
Packit Service 1d0348
	     libarchive-formats(5) for more information about currently-sup‐
Packit Service 1d0348
	     ported formats.  In r and u modes, when extending an existing ar‐
Packit Service 1d0348
	     chive, the format specified here must be compatible with the for‐
Packit Service 1d0348
	     mat of the existing archive on disk.
Packit Service 1d0348
Packit Service 1d0348
     -f file, --file file
Packit Service 1d0348
	     Read the archive from or write the archive to the specified file.
Packit Service 1d0348
	     The filename can be - for standard input or standard output.  The
Packit Service 1d0348
	     default varies by system; on FreeBSD, the default is /dev/sa0; on
Packit Service 1d0348
	     Linux, the default is /dev/st0.
Packit Service 1d0348
Packit Service 1d0348
     --gid id
Packit Service 1d0348
	     Use the provided group id number.	On extract, this overrides the
Packit Service 1d0348
	     group id in the archive; the group name in the archive will be
Packit Service 1d0348
	     ignored.  On create, this overrides the group id read from disk;
Packit Service 1d0348
	     if --gname is not also specified, the group name will be set to
Packit Service 1d0348
	     match the group id.
Packit Service 1d0348
Packit Service 1d0348
     --gname name
Packit Service 1d0348
	     Use the provided group name.  On extract, this overrides the
Packit Service 1d0348
	     group name in the archive; if the provided group name does not
Packit Service 1d0348
	     exist on the system, the group id (from the archive or from the
Packit Service 1d0348
	     --gid option) will be used instead.  On create, this sets the
Packit Service 1d0348
	     group name that will be stored in the archive; the name will not
Packit Service 1d0348
	     be verified against the system group database.
Packit Service 1d0348
Packit Service 1d0348
     -H      (c and r modes only) Symbolic links named on the command line
Packit Service 1d0348
	     will be followed; the target of the link will be archived, not
Packit Service 1d0348
	     the link itself.
Packit Service 1d0348
Packit Service 1d0348
     -h      (c and r modes only) Synonym for -L.
Packit Service 1d0348
Packit Service 1d0348
     -I      Synonym for -T.
Packit Service 1d0348
Packit Service 1d0348
     --help  Show usage.
Packit Service 1d0348
Packit Service 1d0348
     --hfsCompression
Packit Service 1d0348
	     (x mode only) Mac OS X specific (v10.6 or later). Compress
Packit Service 1d0348
	     extracted regular files with HFS+ compression.
Packit Service 1d0348
Packit Service 1d0348
     --ignore-zeros
Packit Service 1d0348
	     An alias of --options read_concatenated_archives for compatibil‐
Packit Service 1d0348
	     ity with GNU tar.
Packit Service 1d0348
Packit Service 1d0348
     --include pattern
Packit Service 1d0348
	     Process only files or directories that match the specified pat‐
Packit Service 1d0348
	     tern.  Note that exclusions specified with --exclude take prece‐
Packit Service 1d0348
	     dence over inclusions.  If no inclusions are explicitly speci‐
Packit Service 1d0348
	     fied, all entries are processed by default.  The --include option
Packit Service 1d0348
	     is especially useful when filtering archives.  For example, the
Packit Service 1d0348
	     command
Packit Service 1d0348
		   tar -c -f new.tar --include='*foo*' @old.tgz
Packit Service 1d0348
	     creates a new archive new.tar containing only the entries from
Packit Service 1d0348
	     old.tgz containing the string ‘foo’.
Packit Service 1d0348
Packit Service 1d0348
     -J, --xz
Packit Service 1d0348
	     (c mode only) Compress the resulting archive with xz(1).  In
Packit Service 1d0348
	     extract or list modes, this option is ignored.  Note that this
Packit Service 1d0348
	     tar implementation recognizes XZ compression automatically when
Packit Service 1d0348
	     reading archives.
Packit Service 1d0348
Packit Service 1d0348
     -j, --bzip, --bzip2, --bunzip2
Packit Service 1d0348
	     (c mode only) Compress the resulting archive with bzip2(1).  In
Packit Service 1d0348
	     extract or list modes, this option is ignored.  Note that this
Packit Service 1d0348
	     tar implementation recognizes bzip2 compression automatically
Packit Service 1d0348
	     when reading archives.
Packit Service 1d0348
Packit Service 1d0348
     -k, --keep-old-files
Packit Service 1d0348
	     (x mode only) Do not overwrite existing files.  In particular, if
Packit Service 1d0348
	     a file appears more than once in an archive, later copies will
Packit Service 1d0348
	     not overwrite earlier copies.
Packit Service 1d0348
Packit Service 1d0348
     --keep-newer-files
Packit Service 1d0348
	     (x mode only) Do not overwrite existing files that are newer than
Packit Service 1d0348
	     the versions appearing in the archive being extracted.
Packit Service 1d0348
Packit Service 1d0348
     -L, --dereference
Packit Service 1d0348
	     (c and r modes only) All symbolic links will be followed.	Nor‐
Packit Service 1d0348
	     mally, symbolic links are archived as such.  With this option,
Packit Service 1d0348
	     the target of the link will be archived instead.
Packit Service 1d0348
Packit Service 1d0348
     -l, --check-links
Packit Service 1d0348
	     (c and r modes only) Issue a warning message unless all links to
Packit Service 1d0348
	     each file are archived.
Packit Service 1d0348
Packit Service 1d0348
     --lrzip
Packit Service 1d0348
	     (c mode only) Compress the resulting archive with lrzip(1).  In
Packit Service 1d0348
	     extract or list modes, this option is ignored.  Note that this
Packit Service 1d0348
	     tar implementation recognizes lrzip compression automatically
Packit Service 1d0348
	     when reading archives.
Packit Service 1d0348
Packit Service 1d0348
     --lz4   (c mode only) Compress the archive with lz4-compatible compres‐
Packit Service 1d0348
	     sion before writing it.  In extract or list modes, this option is
Packit Service 1d0348
	     ignored.  Note that this tar implementation recognizes lz4 com‐
Packit Service 1d0348
	     pression automatically when reading archives.
Packit Service 1d0348
Packit Service 1d0348
     --zstd  (c mode only) Compress the archive with zstd-compatible compres‐
Packit Service 1d0348
	     sion before writing it.  In extract or list modes, this option is
Packit Service 1d0348
	     ignored.  Note that this tar implementation recognizes zstd com‐
Packit Service 1d0348
	     pression automatically when reading archives.
Packit Service 1d0348
Packit Service 1d0348
     --lzma  (c mode only) Compress the resulting archive with the original
Packit Service 1d0348
	     LZMA algorithm.  In extract or list modes, this option is
Packit Service 1d0348
	     ignored.  Use of this option is discouraged and new archives
Packit Service 1d0348
	     should be created with --xz instead.  Note that this tar imple‐
Packit Service 1d0348
	     mentation recognizes LZMA compression automatically when reading
Packit Service 1d0348
	     archives.
Packit Service 1d0348
Packit Service 1d0348
     --lzop  (c mode only) Compress the resulting archive with lzop(1).  In
Packit Service 1d0348
	     extract or list modes, this option is ignored.  Note that this
Packit Service 1d0348
	     tar implementation recognizes LZO compression automatically when
Packit Service 1d0348
	     reading archives.
Packit Service 1d0348
Packit Service 1d0348
     -m, --modification-time
Packit Service 1d0348
	     (x mode only) Do not extract modification time.  By default, the
Packit Service 1d0348
	     modification time is set to the time stored in the archive.
Packit Service 1d0348
Packit Service 1d0348
     --mac-metadata
Packit Service 1d0348
	     (c, r, u and x mode only) Mac OS X specific. Archive or extract
Packit Service 1d0348
	     extended ACLs and extended attributes using copyfile(3) in Apple‐
Packit Service 1d0348
	     Double format. This is the reverse of --no-mac-metadata.  and the
Packit Service 1d0348
	     default behavior in c, r, and u modes or if tar is run in x mode
Packit Service 1d0348
	     as root.
Packit Service 1d0348
Packit Service 1d0348
     -n, --norecurse, --no-recursion
Packit Service 1d0348
	     (c, r, u modes only) Do not recursively archive the contents of
Packit Service 1d0348
	     directories.
Packit Service 1d0348
Packit Service 1d0348
     --newer date
Packit Service 1d0348
	     (c, r, u modes only) Only include files and directories newer
Packit Service 1d0348
	     than the specified date.  This compares ctime entries.
Packit Service 1d0348
Packit Service 1d0348
     --newer-mtime date
Packit Service 1d0348
	     (c, r, u modes only) Like --newer, except it compares mtime
Packit Service 1d0348
	     entries instead of ctime entries.
Packit Service 1d0348
Packit Service 1d0348
     --newer-than file
Packit Service 1d0348
	     (c, r, u modes only) Only include files and directories newer
Packit Service 1d0348
	     than the specified file.  This compares ctime entries.
Packit Service 1d0348
Packit Service 1d0348
     --newer-mtime-than file
Packit Service 1d0348
	     (c, r, u modes only) Like --newer-than, except it compares mtime
Packit Service 1d0348
	     entries instead of ctime entries.
Packit Service 1d0348
Packit Service 1d0348
     --nodump
Packit Service 1d0348
	     (c and r modes only) Honor the nodump file flag by skipping this
Packit Service 1d0348
	     file.
Packit Service 1d0348
Packit Service 1d0348
     --nopreserveHFSCompression
Packit Service 1d0348
	     (x mode only) Mac OS X specific (v10.6 or later). Do not compress
Packit Service 1d0348
	     extracted regular files which were compressed with HFS+ compres‐
Packit Service 1d0348
	     sion before archived.  By default, compress the regular files
Packit Service 1d0348
	     again with HFS+ compression.
Packit Service 1d0348
Packit Service 1d0348
     --null  (use with -I or -T) Filenames or patterns are separated by null
Packit Service 1d0348
	     characters, not by newlines.  This is often used to read file‐
Packit Service 1d0348
	     names output by the -print0 option to find(1).
Packit Service 1d0348
Packit Service 1d0348
     --no-acls
Packit Service 1d0348
	     (c, r, u, x modes only) Do not archive or extract POSIX.1e or
Packit Service 1d0348
	     NFSv4 ACLs. This is the reverse of --acls and the default behav‐
Packit Service 1d0348
	     ior if tar is run as non-root in x mode (on Mac OS X as any user
Packit Service 1d0348
	     in c, r, u and x modes).
Packit Service 1d0348
Packit Service 1d0348
     --no-fflags
Packit Service 1d0348
	     (c, r, u, x modes only) Do not archive or extract file flags.
Packit Service 1d0348
	     This is the reverse of --fflags and the default behavior if tar
Packit Service 1d0348
	     is run as non-root in x mode.
Packit Service 1d0348
Packit Service 1d0348
     --no-mac-metadata
Packit Service 1d0348
	     (x mode only) Mac OS X specific. Do not archive or extract ACLs
Packit Service 1d0348
	     and extended attributes using copyfile(3) in AppleDouble format.
Packit Service 1d0348
	     This is the reverse of --mac-metadata.  and the default behavior
Packit Service 1d0348
	     if tar is run as non-root in x mode.
Packit Service 1d0348
Packit Service 1d0348
     -n, --norecurse, --no-recursion
Packit Service 1d0348
Packit Service 1d0348
     --no-same-owner
Packit Service 1d0348
	     (x mode only) Do not extract owner and group IDs.	This is the
Packit Service 1d0348
	     reverse of --same-owner and the default behavior if tar is run as
Packit Service 1d0348
	     non-root.
Packit Service 1d0348
Packit Service 1d0348
     --no-same-permissions
Packit Service 1d0348
	     (x mode only) Do not extract full permissions (SGID, SUID, sticky
Packit Service 1d0348
	     bit, ACLs, extended attributes or extended file flags).  This is
Packit Service 1d0348
	     the reverse of -p and the default behavior if tar is run as non-
Packit Service 1d0348
	     root.
Packit Service 1d0348
Packit Service 1d0348
     --no-xattrs
Packit Service 1d0348
	     (c, r, u, x modes only) Do not archive or extract extended
Packit Service 1d0348
	     attributes. This is the reverse of --xattrs and the default
Packit Service 1d0348
	     behavior if tar is run as non-root in x mode.
Packit Service 1d0348
Packit Service 1d0348
     --numeric-owner
Packit Service 1d0348
	     This is equivalent to --uname "" --gname "".  On extract, it
Packit Service 1d0348
	     causes user and group names in the archive to be ignored in favor
Packit Service 1d0348
	     of the numeric user and group ids.  On create, it causes user and
Packit Service 1d0348
	     group names to not be stored in the archive.
Packit Service 1d0348
Packit Service 1d0348
     -O, --to-stdout
Packit Service 1d0348
	     (x, t modes only) In extract (-x) mode, files will be written to
Packit Service 1d0348
	     standard out rather than being extracted to disk.	In list (-t)
Packit Service 1d0348
	     mode, the file listing will be written to stderr rather than the
Packit Service 1d0348
	     usual stdout.
Packit Service 1d0348
Packit Service 1d0348
     -o      (x mode) Use the user and group of the user running the program
Packit Service 1d0348
	     rather than those specified in the archive.  Note that this has
Packit Service 1d0348
	     no significance unless -p is specified, and the program is being
Packit Service 1d0348
	     run by the root user.  In this case, the file modes and flags
Packit Service 1d0348
	     from the archive will be restored, but ACLs or owner information
Packit Service 1d0348
	     in the archive will be discarded.
Packit Service 1d0348
Packit Service 1d0348
     -o      (c, r, u mode) A synonym for --format ustar
Packit Service 1d0348
Packit Service 1d0348
     --older date
Packit Service 1d0348
	     (c, r, u modes only) Only include files and directories older
Packit Service 1d0348
	     than the specified date.  This compares ctime entries.
Packit Service 1d0348
Packit Service 1d0348
     --older-mtime date
Packit Service 1d0348
	     (c, r, u modes only) Like --older, except it compares mtime
Packit Service 1d0348
	     entries instead of ctime entries.
Packit Service 1d0348
Packit Service 1d0348
     --older-than file
Packit Service 1d0348
	     (c, r, u modes only) Only include files and directories older
Packit Service 1d0348
	     than the specified file.  This compares ctime entries.
Packit Service 1d0348
Packit Service 1d0348
     --older-mtime-than file
Packit Service 1d0348
	     (c, r, u modes only) Like --older-than, except it compares mtime
Packit Service 1d0348
	     entries instead of ctime entries.
Packit Service 1d0348
Packit Service 1d0348
     --one-file-system
Packit Service 1d0348
	     (c, r, and u modes) Do not cross mount points.
Packit Service 1d0348
Packit Service 1d0348
     --options options
Packit Service 1d0348
	     Select optional behaviors for particular modules.	The argument
Packit Service 1d0348
	     is a text string containing comma-separated keywords and values.
Packit Service 1d0348
	     These are passed to the modules that handle particular formats to
Packit Service 1d0348
	     control how those formats will behave.  Each option has one of
Packit Service 1d0348
	     the following forms:
Packit Service 1d0348
	     key=value
Packit Service 1d0348
		     The key will be set to the specified value in every mod‐
Packit Service 1d0348
		     ule that supports it.  Modules that do not support this
Packit Service 1d0348
		     key will ignore it.
Packit Service 1d0348
	     key     The key will be enabled in every module that supports it.
Packit Service 1d0348
		     This is equivalent to key=1.
Packit Service 1d0348
	     !key    The key will be disabled in every module that supports
Packit Service 1d0348
		     it.
Packit Service 1d0348
	     module:key=value, module:key, module:!key
Packit Service 1d0348
		     As above, but the corresponding key and value will be
Packit Service 1d0348
		     provided only to modules whose name matches module.
Packit Service 1d0348
	     The currently supported modules and keys are:
Packit Service 1d0348
	     iso9660:joliet
Packit Service 1d0348
		     Support Joliet extensions.  This is enabled by default,
Packit Service 1d0348
		     use !joliet or iso9660:!joliet to disable.
Packit Service 1d0348
	     iso9660:rockridge
Packit Service 1d0348
		     Support Rock Ridge extensions.  This is enabled by
Packit Service 1d0348
		     default, use !rockridge or iso9660:!rockridge to disable.
Packit Service 1d0348
	     gzip:compression-level
Packit Service 1d0348
		     A decimal integer from 1 to 9 specifying the gzip com‐
Packit Service 1d0348
		     pression level.
Packit Service 1d0348
	     gzip:timestamp
Packit Service 1d0348
		     Store timestamp. This is enabled by default, use
Packit Service 1d0348
		     !timestamp or gzip:!timestamp to disable.
Packit Service 1d0348
	     lrzip:compression=type
Packit Service 1d0348
		     Use type as compression method.  Supported values are
Packit Service 1d0348
		     bzip2, gzip, lzo (ultra fast), and zpaq (best, extremely
Packit Service 1d0348
		     slow).
Packit Service 1d0348
	     lrzip:compression-level
Packit Service 1d0348
		     A decimal integer from 1 to 9 specifying the lrzip com‐
Packit Service 1d0348
		     pression level.
Packit Service 1d0348
	     lz4:compression-level
Packit Service 1d0348
		     A decimal integer from 1 to 9 specifying the lzop com‐
Packit Service 1d0348
		     pression level.
Packit Service 1d0348
	     lz4:stream-checksum
Packit Service 1d0348
		     Enable stream checksum. This is by default, use
Packit Service 1d0348
		     lz4:!stream-checksum to disable.
Packit Service 1d0348
	     lz4:block-checksum
Packit Service 1d0348
		     Enable block checksum (Disabled by default).
Packit Service 1d0348
	     lz4:block-size
Packit Service 1d0348
		     A decimal integer from 4 to 7 specifying the lz4 compres‐
Packit Service 1d0348
		     sion block size (7 is set by default).
Packit Service 1d0348
	     lz4:block-dependence
Packit Service 1d0348
		     Use the previous block of the block being compressed for
Packit Service 1d0348
		     a compression dictionary to improve compression ratio.
Packit Service 1d0348
	     zstd:compression-level
Packit Service 1d0348
		     A decimal integer from 1 to 22 specifying the zstd com‐
Packit Service 1d0348
		     pression level.
Packit Service 1d0348
	     lzop:compression-level
Packit Service 1d0348
		     A decimal integer from 1 to 9 specifying the lzop com‐
Packit Service 1d0348
		     pression level.
Packit Service 1d0348
	     xz:compression-level
Packit Service 1d0348
		     A decimal integer from 0 to 9 specifying the xz compres‐
Packit Service 1d0348
		     sion level.
Packit Service 1d0348
	     mtree:keyword
Packit Service 1d0348
		     The mtree writer module allows you to specify which mtree
Packit Service 1d0348
		     keywords will be included in the output.  Supported key‐
Packit Service 1d0348
		     words include: cksum, device, flags, gid, gname, indent,
Packit Service 1d0348
		     link, md5, mode, nlink, rmd160, sha1, sha256, sha384,
Packit Service 1d0348
		     sha512, size, time, uid, uname.  The default is equiva‐
Packit Service 1d0348
		     lent to: “device, flags, gid, gname, link, mode, nlink,
Packit Service 1d0348
		     size, time, type, uid, uname”.
Packit Service 1d0348
	     mtree:all
Packit Service 1d0348
		     Enables all of the above keywords.  You can also use
Packit Service 1d0348
		     mtree:!all to disable all keywords.
Packit Service 1d0348
	     mtree:use-set
Packit Service 1d0348
		     Enable generation of /set lines in the output.
Packit Service 1d0348
	     mtree:indent
Packit Service 1d0348
		     Produce human-readable output by indenting options and
Packit Service 1d0348
		     splitting lines to fit into 80 columns.
Packit Service 1d0348
	     zip:compression=type
Packit Service 1d0348
		     Use type as compression method.  Supported values are
Packit Service 1d0348
		     store (uncompressed) and deflate (gzip algorithm).
Packit Service 1d0348
	     zip:encryption
Packit Service 1d0348
		     Enable encryption using traditional zip encryption.
Packit Service 1d0348
	     zip:encryption=type
Packit Service 1d0348
		     Use type as encryption type.  Supported values are
Packit Service 1d0348
		     zipcrypt (traditional zip encryption), aes128 (WinZip
Packit Service 1d0348
		     AES-128 encryption) and aes256 (WinZip AES-256 encryp‐
Packit Service 1d0348
		     tion).
Packit Service 1d0348
	     read_concatenated_archives
Packit Service 1d0348
		     Ignore zeroed blocks in the archive, which occurs when
Packit Service 1d0348
		     multiple tar archives have been concatenated together.
Packit Service 1d0348
		     Without this option, only the contents of the first con‐
Packit Service 1d0348
		     catenated archive would be read.  This option is compara‐
Packit Service 1d0348
		     ble to the -i, --ignore-zeros option of GNU tar.
Packit Service 1d0348
	     If a provided option is not supported by any module, that is a
Packit Service 1d0348
	     fatal error.
Packit Service 1d0348
Packit Service 1d0348
     -P, --absolute-paths
Packit Service 1d0348
	     Preserve pathnames.  By default, absolute pathnames (those that
Packit Service 1d0348
	     begin with a / character) have the leading slash removed both
Packit Service 1d0348
	     when creating archives and extracting from them.  Also, tar will
Packit Service 1d0348
	     refuse to extract archive entries whose pathnames contain .. or
Packit Service 1d0348
	     whose target directory would be altered by a symlink.  This
Packit Service 1d0348
	     option suppresses these behaviors.
Packit Service 1d0348
Packit Service 1d0348
     -p, --insecure, --preserve-permissions
Packit Service 1d0348
	     (x mode only) Preserve file permissions.  Attempt to restore the
Packit Service 1d0348
	     full permissions, including owner, file modes, ACLs, extended
Packit Service 1d0348
	     attributes and extended file flags, if available, for each item
Packit Service 1d0348
	     extracted from the archive. This is te reverse of
Packit Service 1d0348
	     --no-same-permissions and the default if tar is being run by root
Packit Service 1d0348
	     and can be partially overridden by also specifying --no-acls,
Packit Service 1d0348
	     --no-fflags, --no-mac-metadata or --no-xattrs.
Packit Service 1d0348
Packit Service 1d0348
     --passphrase passphrase
Packit Service 1d0348
	     The passphrase is used to extract or create an encrypted archive.
Packit Service 1d0348
	     Currently, zip is the only supported format that supports encryp‐
Packit Service 1d0348
	     tion.  You shouldn't use this option unless you realize how inse‐
Packit Service 1d0348
	     cure use of this option is.
Packit Service 1d0348
Packit Service 1d0348
     --posix
Packit Service 1d0348
	     (c, r, u mode only) Synonym for --format pax
Packit Service 1d0348
Packit Service 1d0348
     -q, --fast-read
Packit Service 1d0348
	     (x and t mode only) Extract or list only the first archive entry
Packit Service 1d0348
	     that matches each pattern or filename operand.  Exit as soon as
Packit Service 1d0348
	     each specified pattern or filename has been matched.  By default,
Packit Service 1d0348
	     the archive is always read to the very end, since there can be
Packit Service 1d0348
	     multiple entries with the same name and, by convention, later
Packit Service 1d0348
	     entries overwrite earlier entries.  This option is provided as a
Packit Service 1d0348
	     performance optimization.
Packit Service 1d0348
Packit Service 1d0348
     -S      (x mode only) Extract files as sparse files.  For every block on
Packit Service 1d0348
	     disk, check first if it contains only NULL bytes and seek over it
Packit Service 1d0348
	     otherwise.  This works similar to the conv=sparse option of dd.
Packit Service 1d0348
Packit Service 1d0348
     -s pattern
Packit Service 1d0348
	     Modify file or archive member names according to pattern.	The
Packit Service 1d0348
	     pattern has the format /old/new/[ghHprRsS] where old is a basic
Packit Service 1d0348
	     regular expression, new is the replacement string of the matched
Packit Service 1d0348
	     part, and the optional trailing letters modify how the replace‐
Packit Service 1d0348
	     ment is handled.  If old is not matched, the pattern is skipped.
Packit Service 1d0348
	     Within new, ~ is substituted with the match, \1 to \9 with the
Packit Service 1d0348
	     content of the corresponding captured group.  The optional trail‐
Packit Service 1d0348
	     ing g specifies that matching should continue after the matched
Packit Service 1d0348
	     part and stop on the first unmatched pattern.  The optional
Packit Service 1d0348
	     trailing s specifies that the pattern applies to the value of
Packit Service 1d0348
	     symbolic links.  The optional trailing p specifies that after a
Packit Service 1d0348
	     successful substitution the original path name and the new path
Packit Service 1d0348
	     name should be printed to standard error.	Optional trailing H,
Packit Service 1d0348
	     R, or S characters suppress substitutions for hardlink targets,
Packit Service 1d0348
	     regular filenames, or symlink targets, respectively.  Optional
Packit Service 1d0348
	     trailing h, r, or s characters enable substitutions for hardlink
Packit Service 1d0348
	     targets, regular filenames, or symlink targets, respectively.
Packit Service 1d0348
	     The default is hrs which applies substitutions to all names.  In
Packit Service 1d0348
	     particular, it is never necessary to specify h, r, or s.
Packit Service 1d0348
Packit Service 1d0348
     --same-owner
Packit Service 1d0348
	     (x mode only) Extract owner and group IDs.  This is the reverse
Packit Service 1d0348
	     of --no-same-owner and the default behavior if tar is run as
Packit Service 1d0348
	     root.
Packit Service 1d0348
Packit Service 1d0348
     --strip-components count
Packit Service 1d0348
	     Remove the specified number of leading path elements.  Pathnames
Packit Service 1d0348
	     with fewer elements will be silently skipped.  Note that the
Packit Service 1d0348
	     pathname is edited after checking inclusion/exclusion patterns
Packit Service 1d0348
	     but before security checks.
Packit Service 1d0348
Packit Service 1d0348
     -T filename, --files-from filename
Packit Service 1d0348
	     In x or t mode, tar will read the list of names to be extracted
Packit Service 1d0348
	     from filename.  In c mode, tar will read names to be archived
Packit Service 1d0348
	     from filename.  The special name “-C” on a line by itself will
Packit Service 1d0348
	     cause the current directory to be changed to the directory speci‐
Packit Service 1d0348
	     fied on the following line.  Names are terminated by newlines
Packit Service 1d0348
	     unless --null is specified.  Note that --null also disables the
Packit Service 1d0348
	     special handling of lines containing “-C”.  Note:	If you are
Packit Service 1d0348
	     generating lists of files using find(1), you probably want to use
Packit Service 1d0348
	     -n as well.
Packit Service 1d0348
Packit Service 1d0348
     --totals
Packit Service 1d0348
	     (c, r, u modes only) After archiving all files, print a summary
Packit Service 1d0348
	     to stderr.
Packit Service 1d0348
Packit Service 1d0348
     -U, --unlink, --unlink-first
Packit Service 1d0348
	     (x mode only) Unlink files before creating them.  This can be a
Packit Service 1d0348
	     minor performance optimization if most files already exist, but
Packit Service 1d0348
	     can make things slower if most files do not already exist.  This
Packit Service 1d0348
	     flag also causes tar to remove intervening directory symlinks
Packit Service 1d0348
	     instead of reporting an error.  See the SECURITY section below
Packit Service 1d0348
	     for more details.
Packit Service 1d0348
Packit Service 1d0348
     --uid id
Packit Service 1d0348
	     Use the provided user id number and ignore the user name from the
Packit Service 1d0348
	     archive.  On create, if --uname is not also specified, the user
Packit Service 1d0348
	     name will be set to match the user id.
Packit Service 1d0348
Packit Service 1d0348
     --uname name
Packit Service 1d0348
	     Use the provided user name.  On extract, this overrides the user
Packit Service 1d0348
	     name in the archive; if the provided user name does not exist on
Packit Service 1d0348
	     the system, it will be ignored and the user id (from the archive
Packit Service 1d0348
	     or from the --uid option) will be used instead.  On create, this
Packit Service 1d0348
	     sets the user name that will be stored in the archive; the name
Packit Service 1d0348
	     is not verified against the system user database.
Packit Service 1d0348
Packit Service 1d0348
     --use-compress-program program
Packit Service 1d0348
	     Pipe the input (in x or t mode) or the output (in c mode) through
Packit Service 1d0348
	     program instead of using the builtin compression support.
Packit Service 1d0348
Packit Service 1d0348
     -v, --verbose
Packit Service 1d0348
	     Produce verbose output.  In create and extract modes, tar will
Packit Service 1d0348
	     list each file name as it is read from or written to the archive.
Packit Service 1d0348
	     In list mode, tar will produce output similar to that of ls(1).
Packit Service 1d0348
	     An additional -v option will also provide ls-like details in cre‐
Packit Service 1d0348
	     ate and extract mode.
Packit Service 1d0348
Packit Service 1d0348
     --version
Packit Service 1d0348
	     Print version of tar and libarchive, and exit.
Packit Service 1d0348
Packit Service 1d0348
     -w, --confirmation, --interactive
Packit Service 1d0348
	     Ask for confirmation for every action.
Packit Service 1d0348
Packit Service 1d0348
     -X filename, --exclude-from filename
Packit Service 1d0348
	     Read a list of exclusion patterns from the specified file.  See
Packit Service 1d0348
	     --exclude for more information about the handling of exclusions.
Packit Service 1d0348
Packit Service 1d0348
     --xattrs
Packit Service 1d0348
	     (c, r, u, x modes only) Archive or extract extended attributes.
Packit Service 1d0348
	     This is the reverse of --no-xattrs and the default behavior in c,
Packit Service 1d0348
	     r, and u modes or if tar is run in x mode as root.
Packit Service 1d0348
Packit Service 1d0348
     -y      (c mode only) Compress the resulting archive with bzip2(1).  In
Packit Service 1d0348
	     extract or list modes, this option is ignored.  Note that this
Packit Service 1d0348
	     tar implementation recognizes bzip2 compression automatically
Packit Service 1d0348
	     when reading archives.
Packit Service 1d0348
Packit Service 1d0348
     -Z, --compress, --uncompress
Packit Service 1d0348
	     (c mode only) Compress the resulting archive with compress(1).
Packit Service 1d0348
	     In extract or list modes, this option is ignored.	Note that this
Packit Service 1d0348
	     tar implementation recognizes compress compression automatically
Packit Service 1d0348
	     when reading archives.
Packit Service 1d0348
Packit Service 1d0348
     -z, --gunzip, --gzip
Packit Service 1d0348
	     (c mode only) Compress the resulting archive with gzip(1).  In
Packit Service 1d0348
	     extract or list modes, this option is ignored.  Note that this
Packit Service 1d0348
	     tar implementation recognizes gzip compression automatically when
Packit Service 1d0348
	     reading archives.
Packit Service 1d0348
Packit Service 1d0348
ENVIRONMENT
Packit Service 1d0348
     The following environment variables affect the execution of tar:
Packit Service 1d0348
Packit Service 1d0348
     TAR_READER_OPTIONS
Packit Service 1d0348
		The default options for format readers and compression read‐
Packit Service 1d0348
		ers.  The --options option overrides this.
Packit Service 1d0348
Packit Service 1d0348
     TAR_WRITER_OPTIONS
Packit Service 1d0348
		The default options for format writers and compression writ‐
Packit Service 1d0348
		ers.  The --options option overrides this.
Packit Service 1d0348
Packit Service 1d0348
     LANG	The locale to use.  See environ(7) for more information.
Packit Service 1d0348
Packit Service 1d0348
     TAPE	The default device.  The -f option overrides this.  Please see
Packit Service 1d0348
		the description of the -f option above for more details.
Packit Service 1d0348
Packit Service 1d0348
     TZ 	The timezone to use when displaying dates.  See environ(7) for
Packit Service 1d0348
		more information.
Packit Service 1d0348
Packit Service 1d0348
EXIT STATUS
Packit Service 1d0348
     The tar utility exits 0 on success, and >0 if an error occurs.
Packit Service 1d0348
Packit Service 1d0348
EXAMPLES
Packit Service 1d0348
     The following creates a new archive called file.tar.gz that contains two
Packit Service 1d0348
     files source.c and source.h:
Packit Service 1d0348
	   tar -czf file.tar.gz source.c source.h
Packit Service 1d0348
Packit Service 1d0348
     To view a detailed table of contents for this archive:
Packit Service 1d0348
	   tar -tvf file.tar.gz
Packit Service 1d0348
Packit Service 1d0348
     To extract all entries from the archive on the default tape drive:
Packit Service 1d0348
	   tar -x
Packit Service 1d0348
Packit Service 1d0348
     To examine the contents of an ISO 9660 cdrom image:
Packit Service 1d0348
	   tar -tf image.iso
Packit Service 1d0348
Packit Service 1d0348
     To move file hierarchies, invoke tar as
Packit Service 1d0348
	   tar -cf - -C srcdir . | tar -xpf - -C destdir
Packit Service 1d0348
     or more traditionally
Packit Service 1d0348
	   cd srcdir ; tar -cf - . | (cd destdir ; tar -xpf -)
Packit Service 1d0348
Packit Service 1d0348
     In create mode, the list of files and directories to be archived can also
Packit Service 1d0348
     include directory change instructions of the form -Cfoo/baz and archive
Packit Service 1d0348
     inclusions of the form @archive-file.  For example, the command line
Packit Service 1d0348
	   tar -c -f new.tar foo1 @old.tgz -C/tmp foo2
Packit Service 1d0348
     will create a new archive new.tar.  tar will read the file foo1 from the
Packit Service 1d0348
     current directory and add it to the output archive.  It will then read
Packit Service 1d0348
     each entry from old.tgz and add those entries to the output archive.
Packit Service 1d0348
     Finally, it will switch to the /tmp directory and add foo2 to the output
Packit Service 1d0348
     archive.
Packit Service 1d0348
Packit Service 1d0348
     An input file in mtree(5) format can be used to create an output archive
Packit Service 1d0348
     with arbitrary ownership, permissions, or names that differ from existing
Packit Service 1d0348
     data on disk:
Packit Service 1d0348
Packit Service 1d0348
	   $ cat input.mtree
Packit Service 1d0348
	   #mtree
Packit Service 1d0348
	   usr/bin uid=0 gid=0 mode=0755 type=dir
Packit Service 1d0348
	   usr/bin/ls uid=0 gid=0 mode=0755 type=file content=myls
Packit Service 1d0348
	   $ tar -cvf output.tar @input.mtree
Packit Service 1d0348
Packit Service 1d0348
     The --newer and --newer-mtime switches accept a variety of common date
Packit Service 1d0348
     and time specifications, including “12 Mar 2005 7:14:29pm”, “2005-03-12
Packit Service 1d0348
     19:14”, “5 minutes ago”, and “19:14 PST May 1”.
Packit Service 1d0348
Packit Service 1d0348
     The --options argument can be used to control various details of archive
Packit Service 1d0348
     generation or reading.  For example, you can generate mtree output which
Packit Service 1d0348
     only contains type, time, and uid keywords:
Packit Service 1d0348
	   tar -cf file.tar --format=mtree --options='!all,type,time,uid' dir
Packit Service 1d0348
     or you can set the compression level used by gzip or xz compression:
Packit Service 1d0348
	   tar -czf file.tar --options='compression-level=9'.
Packit Service 1d0348
     For more details, see the explanation of the archive_read_set_options()
Packit Service 1d0348
     and archive_write_set_options() API calls that are described in
Packit Service 1d0348
     archive_read(3) and archive_write(3).
Packit Service 1d0348
Packit Service 1d0348
COMPATIBILITY
Packit Service 1d0348
     The bundled-arguments format is supported for compatibility with historic
Packit Service 1d0348
     implementations.  It consists of an initial word (with no leading - char‐
Packit Service 1d0348
     acter) in which each character indicates an option.  Arguments follow as
Packit Service 1d0348
     separate words.  The order of the arguments must match the order of the
Packit Service 1d0348
     corresponding characters in the bundled command word.  For example,
Packit Service 1d0348
	   tar tbf 32 file.tar
Packit Service 1d0348
     specifies three flags t, b, and f.  The b and f flags both require argu‐
Packit Service 1d0348
     ments, so there must be two additional items on the command line.	The 32
Packit Service 1d0348
     is the argument to the b flag, and file.tar is the argument to the f
Packit Service 1d0348
     flag.
Packit Service 1d0348
Packit Service 1d0348
     The mode options c, r, t, u, and x and the options b, f, l, m, o, v, and
Packit Service 1d0348
     w comply with SUSv2.
Packit Service 1d0348
Packit Service 1d0348
     For maximum portability, scripts that invoke tar should use the bundled-
Packit Service 1d0348
     argument format above, should limit themselves to the c, t, and x modes,
Packit Service 1d0348
     and the b, f, m, v, and w options.
Packit Service 1d0348
Packit Service 1d0348
     Additional long options are provided to improve compatibility with other
Packit Service 1d0348
     tar implementations.
Packit Service 1d0348
Packit Service 1d0348
SECURITY
Packit Service 1d0348
     Certain security issues are common to many archiving programs, including
Packit Service 1d0348
     tar.  In particular, carefully-crafted archives can request that tar
Packit Service 1d0348
     extract files to locations outside of the target directory.  This can
Packit Service 1d0348
     potentially be used to cause unwitting users to overwrite files they did
Packit Service 1d0348
     not intend to overwrite.  If the archive is being extracted by the supe‐
Packit Service 1d0348
     ruser, any file on the system can potentially be overwritten.  There are
Packit Service 1d0348
     three ways this can happen.  Although tar has mechanisms to protect
Packit Service 1d0348
     against each one, savvy users should be aware of the implications:
Packit Service 1d0348
Packit Service 1d0348
     ·	     Archive entries can have absolute pathnames.  By default, tar
Packit Service 1d0348
	     removes the leading / character from filenames before restoring
Packit Service 1d0348
	     them to guard against this problem.
Packit Service 1d0348
Packit Service 1d0348
     ·	     Archive entries can have pathnames that include .. components.
Packit Service 1d0348
	     By default, tar will not extract files containing .. components
Packit Service 1d0348
	     in their pathname.
Packit Service 1d0348
Packit Service 1d0348
     ·	     Archive entries can exploit symbolic links to restore files to
Packit Service 1d0348
	     other directories.  An archive can restore a symbolic link to
Packit Service 1d0348
	     another directory, then use that link to restore a file into that
Packit Service 1d0348
	     directory.  To guard against this, tar checks each extracted path
Packit Service 1d0348
	     for symlinks.  If the final path element is a symlink, it will be
Packit Service 1d0348
	     removed and replaced with the archive entry.  If -U is specified,
Packit Service 1d0348
	     any intermediate symlink will also be unconditionally removed.
Packit Service 1d0348
	     If neither -U nor -P is specified, tar will refuse to extract the
Packit Service 1d0348
	     entry.
Packit Service 1d0348
     To protect yourself, you should be wary of any archives that come from
Packit Service 1d0348
     untrusted sources.  You should examine the contents of an archive with
Packit Service 1d0348
	   tar -tf filename
Packit Service 1d0348
     before extraction.  You should use the -k option to ensure that tar will
Packit Service 1d0348
     not overwrite any existing files or the -U option to remove any pre-
Packit Service 1d0348
     existing files.  You should generally not extract archives while running
Packit Service 1d0348
     with super-user privileges.  Note that the -P option to tar disables the
Packit Service 1d0348
     security checks above and allows you to extract an archive while preserv‐
Packit Service 1d0348
     ing any absolute pathnames, .. components, or symlinks to other directo‐
Packit Service 1d0348
     ries.
Packit Service 1d0348
Packit Service 1d0348
SEE ALSO
Packit Service 1d0348
     bzip2(1), compress(1), cpio(1), gzip(1), mt(1), pax(1), shar(1), xz(1),
Packit Service 1d0348
     libarchive(3), libarchive-formats(5), tar(5)
Packit Service 1d0348
Packit Service 1d0348
STANDARDS
Packit Service 1d0348
     There is no current POSIX standard for the tar command; it appeared in
Packit Service 1d0348
     ISO/IEC 9945-1:1996 (“POSIX.1”) but was dropped from IEEE Std 1003.1-2001
Packit Service 1d0348
     (“POSIX.1”).  The options supported by this implementation were developed
Packit Service 1d0348
     by surveying a number of existing tar implementations as well as the old
Packit Service 1d0348
     POSIX specification for tar and the current POSIX specification for pax.
Packit Service 1d0348
Packit Service 1d0348
     The ustar and pax interchange file formats are defined by IEEE Std
Packit Service 1d0348
     1003.1-2001 (“POSIX.1”) for the pax command.
Packit Service 1d0348
Packit Service 1d0348
HISTORY
Packit Service 1d0348
     A tar command appeared in Seventh Edition Unix, which was released in
Packit Service 1d0348
     January, 1979.  There have been numerous other implementations, many of
Packit Service 1d0348
     which extended the file format.  John Gilmore's pdtar public-domain
Packit Service 1d0348
     implementation (circa November, 1987) was quite influential, and formed
Packit Service 1d0348
     the basis of GNU tar.  GNU tar was included as the standard system tar in
Packit Service 1d0348
     FreeBSD beginning with FreeBSD 1.0.
Packit Service 1d0348
Packit Service 1d0348
     This is a complete re-implementation based on the libarchive(3) library.
Packit Service 1d0348
     It was first released with FreeBSD 5.4 in May, 2005.
Packit Service 1d0348
Packit Service 1d0348
BUGS
Packit Service 1d0348
     This program follows ISO/IEC 9945-1:1996 (“POSIX.1”) for the definition
Packit Service 1d0348
     of the -l option.	Note that GNU tar prior to version 1.15 treated -l as
Packit Service 1d0348
     a synonym for the --one-file-system option.
Packit Service 1d0348
Packit Service 1d0348
     The -C dir option may differ from historic implementations.
Packit Service 1d0348
Packit Service 1d0348
     All archive output is written in correctly-sized blocks, even if the out‐
Packit Service 1d0348
     put is being compressed.  Whether or not the last output block is padded
Packit Service 1d0348
     to a full block size varies depending on the format and the output
Packit Service 1d0348
     device.  For tar and cpio formats, the last block of output is padded to
Packit Service 1d0348
     a full block size if the output is being written to standard output or to
Packit Service 1d0348
     a character or block device such as a tape drive.	If the output is being
Packit Service 1d0348
     written to a regular file, the last block will not be padded.  Many com‐
Packit Service 1d0348
     pressors, including gzip(1) and bzip2(1), complain about the null padding
Packit Service 1d0348
     when decompressing an archive created by tar, although they still extract
Packit Service 1d0348
     it correctly.
Packit Service 1d0348
Packit Service 1d0348
     The compression and decompression is implemented internally, so there may
Packit Service 1d0348
     be insignificant differences between the compressed output generated by
Packit Service 1d0348
	   tar -czf - file
Packit Service 1d0348
     and that generated by
Packit Service 1d0348
	   tar -cf - file | gzip
Packit Service 1d0348
Packit Service 1d0348
     The default should be to read and write archives to the standard I/O
Packit Service 1d0348
     paths, but tradition (and POSIX) dictates otherwise.
Packit Service 1d0348
Packit Service 1d0348
     The r and u modes require that the archive be uncompressed and located in
Packit Service 1d0348
     a regular file on disk.  Other archives can be modified using c mode with
Packit Service 1d0348
     the @archive-file extension.
Packit Service 1d0348
Packit Service 1d0348
     To archive a file called @foo or -foo you must specify it as ./@foo or
Packit Service 1d0348
     ./-foo, respectively.
Packit Service 1d0348
Packit Service 1d0348
     In create mode, a leading ./ is always removed.  A leading / is stripped
Packit Service 1d0348
     unless the -P option is specified.
Packit Service 1d0348
Packit Service 1d0348
     There needs to be better support for file selection on both create and
Packit Service 1d0348
     extract.
Packit Service 1d0348
Packit Service 1d0348
     There is not yet any support for multi-volume archives.
Packit Service 1d0348
Packit Service 1d0348
     Converting between dissimilar archive formats (such as tar and cpio)
Packit Service 1d0348
     using the @- convention can cause hard link information to be lost.
Packit Service 1d0348
     (This is a consequence of the incompatible ways that different archive
Packit Service 1d0348
     formats store hardlink information.)
Packit Service 1d0348
Packit Service 1d0348
BSD				October 1, 2017 			   BSD