Logo
Web01
Ch4os1@web01:~/commands/tar
← View all bash commands

tar

tar - Archive files using the tar format.

Examples

tar -cvf archive.tar /path/to/directory
              

Create a tar archive of the specified directory.

tar -xvf archive.tar
              

Extract the contents of the tar archive.

Notes

This command affects only the current shell session.