--help
|
Displays all options
|
|
|
--version
|
Outputs the version of tar in use
|
|
|
-c
|
Creates a new archive
|
(create)
|
|
-d
|
Compares files in the archive and in the file system with one another
|
(diff)
|
|
-f
|
Writes an archive in the given file or reads the data out from the given file
|
(file) This option always has to be entered last, since all subsequent entries are interpreted as files
|
|
-z
|
Compresses or decompresses the archive directly with gzip
|
gzip needs to already be installed
|
|
-Z
|
Compresses or decompresses the archive directly with compress
|
compress needs to already be installed; pay attention to capitalisation
|
|
-j
|
Compresses or decompresses the archive directly with bzip2
|
bzip2 needs to already be installed
|
|
-J
|
Compresses or decompresses the archive directly with xz
|
xz needs to already be installed; pay attention to capitalisation
|
|
-k
|
Prevents files from overwriting already existing files when extracting from the archive
|
|
|
-p
|
Maintains access privileges while extracting
|
|
|
-r
|
Adds a file to an existing archive
|
(recreate) The file is attached to the back of the archive; only functions with an uncompressed archive
|
|
-t
|
Displays the content of an archive
|
(table)
|
|
-u
|
Only attaches files that are younger than their respective versions in the archive
|
|
|
-v
|
Displays the steps involved in archiving
|
(verbose)
|
|
-vv
|
Displays detailed information about the archiving
|
(very verbose)
|
|
-w
|
Each action must be confirmed
|
|
|
-x
|
Extracts files from the archive
|
(extract) The files remain in the archive
|
|
-A
|
Attaches the files of an existing archive to another
|
Pay attention to capitalisation
|
|
-C
|
Outputs the location from which the files should be extracted
|
Pay attention to capitalisation
|
|
-M
|
Creates, displays, or extracts a multi-part archive
|
Pay attention to capitalisation
|
|
-L
|
Changes the medium to a specific file size
|
The size is output in kilobytes; pay attention to capitalisation
|
|
-W
|
Checks the archive after it’s been written
|
Pay attention to capitalisation
|
|
-P
|
Archives all files from the root directory
|
Pay attention to capitalisation
|
|
--exclude
|
Excludes files or folders
|
Specified after the creation command with --exclude=<File/Folder>
|
|
-X
|
Reads a list with excluded files
|
Requires a previously created list: -X<List>.list; pay attention to capitalisation
|
|
-g
|
Creates a log of all directories, including checksums
|
|
|