How to Tar a folder in Linux

Tar is a useful application to archive your folders/files to save for later, or to make a backup. Here are the commands you need to know how to Tar.

# tar -cvzf archive-name-you-want-to-use /rootofyour/folder/locationyouwanttoarchive

To untar this file you would use this command:

# tar -xvzf tar-filename.tar.gz

That's all you gotta do!

Tags: