2025-02-07
Creates, manipulates, and extracts archive files. It is commonly used to compress and bundle files into one single file for easier distribution or storage.
Command | Description |
---|---|
tar |
The basic command for creating or extracting archive files. |
tar -c |
Creates a new archive. |
tar -x |
Extracts files from an archive. |
tar -v |
Verbose mode; displays the files being processed. |
tar -f |
Specifies the name of the archive file. |
tar -t |
Lists the contents of an archive without extracting. |
tar -u |
Adds files to an existing archive. |
tar -w |
Prompts the user for confirmation before overwriting files. |