--help | Show all options. | | |
--version | Shows the current version of tar. | | |
-c | Create a new file | (create) | |
-d | Compare the files in the archive and the filesystem. | (diff) | |
-F | Write a file to the specified file or select the data from the given file. | (file) This option must be indicated at the end, since the entries that follow are interpreted as files. | |
-z | Compress or unzip the file directly with gzip. | gzip must already be installed. | |
-Z | Compress or decompress the file directly with compress. | compress must already be installed. Attention should be paid to the capital letter. | |
-j | Zip or unzip the file directly with bzip2. | bzip2 must already be installed. | |
-J | Zip or unzip the file directly with xz. | xz must already be installed. Attention with the capital letter. | |
-k | Prevents files from overwriting other existing files when extracting them from the archive. | | |
-p | Save access rights on extraction. | | |
-r | Add a file to the existing archive. | (recreate) The file is concatenated to the previous one, which works only if the file has not been compressed. | |
-t | Displays the contents of a file. | (table) | |
-or | It only adds files more recent than their current versions in the archive. | | |
-v | Shows the archiving process. | (verbose) | |
-vv | Shows more detailed information about the archiving process. | (very verbose) | |
-w | Every action must be ratified. | | |
-x | Extract files from archive. | (extract) The files remain in the file. | |
-TO | Add the files that make up an existing archive to another. | Attention should be paid to the capital letter. | |
-C | Shows the location to extract the files. | Attention should be paid to the capital letter | |
-M | Create, display or extract a multiple file. | Attention should be paid to the capital letter | |
-L | Change the media after the file is a certain size. | Size is measured in kilobytes. Attention should be paid to the capital letter. | |
-W | Check the file after it has been written. | Attention should be paid to the capital letter. | |
-P | Archive all files in the root directory. | Attention should be paid to the capital letter. | |
--exclude | Exclude files or folders. | Specify after create command with --exclude = <file / folder> | |
-X | Read a list of excluded files. | Requires a previously created list: -X <List> .list. Attention should be paid to the capital letter. | |
-g | Creates a record of all folders including checksums. | | |