Log in
updated 11:29 AM UTC, May 4, 2016

How to tar(Zip)/untar(Unzip) in Ubuntu Linux

Its bit confusing and time consuming if you are not frequently doing tar and untar.

Here is an example to tar and untar using Linux tar command.

 

Syntax:
To Tar:

tar –cvzf your_tarfilename folder_to_tar

Untar:

tar –xvzf your_tarfilename

Example:
tar –cvzf Yourfilename.tar.gz FOLDER_TO_TAR

This will zip (tar) the FOLDER_TO_TAR folder with the name Yourfilename.tar.gz

tar –xvzf Yourfilename.tar.gz

This will unzip (untar) the file as FOLDER_TO_TAR folder.

 

 


Powered by Bullraider.com
Follow Us on Twitter
Find Us on Facebook
Follow Us on Google
Follow Us on Pinterest