Viewing Category » unix shell

Creating a tar.gz pack of a folder and its content with unix shell

Post Thumbnail of Creating a tar.gz pack of a folder and its content with unix shell
 unix shell       

the command template to achieve packing a folder into a .tar.gz compressed file is as follows:
tar -zcvf packagename.tar.gz foldername/
to coppy all of the files of that folder instead of the folder itself just you need to opt a asterix at the end of it:
tar -zcvf packagename.tar.gz foldername/*
Thanks
Voshka Niknam

11 March 2011  No comments
CrossBlock designed by DeltaManual.Com  |  In conjunction with Web Hosting   |   Web Hosting   |   Reverse phone