To extract a tar file, run

Uncompress tar.gz file

Uncompress tar.bz2 file

Create a tar file


Once backup.tar file is created, you can make it tar.gz with command

Exclude a folder from tar file

To exclude a folder, you can use –exclude option.

List content of a tar file

If you want to exclude a folder from the file list, use

This will exclude all files that are inside folder “home/haridy/Maildir”. You can use multiple –exclude if required.

Using tar over SSH Session
Split Large file into smaller files
How to view the contents of tar.gz file

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *