Go to ...

Techpository

A Better Technical Repository

RSS Feed

Linux: How to Tar/Un Tar a Folder


To Tar:
tar –cvzf tarfilename foldername

Untar:
tar –xvzf tarfilename

Example:
tar –cvzf abc.tar.gz abc
– This will zip [tar] the abc folder with the name abc.tar.gz

tar –xvzf filename.tar.gz
– This will unzip [untar] the file as abc folder.

By: Shane G.