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