Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

unix, pack folder and contents with tar gz (See related posts)

tar -zcvf packagename.tar.gz folder/

Comments on this post

ttmrichter posts on Dec 04, 2006 at 12:27
To use bzip2 instead of gzip, substitute a 'j' for the 'z'. Bzip2 is typically superior for text files than gzip while the reverse tends to be true for binary. It is, however, very slow during compression.
assbach posts on Dec 10, 2006 at 20:31
thank you for your comment! i'm always willing to learn. :)

You need to create an account or log in to post comments to this site.


Click here to browse all 4858 code snippets

Related Posts