-
Tar Command: How to Tar/Un Tar [Zip/Unzip] a Folder From Linux Command?
Hello All,
In order to zip/unzip folder from command prompt one need to execute tar command. Below mentioned is syntax and example for the same:
Syntax:
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.
That’s it!
Thanks,
Shane G.
AccuWebHosting.Com
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)


LinkBack URL
About LinkBacks





Reply With Quote


Bookmarks