tar czvf mydirectory.tgz mydirectory
c– create a new archive.z– gzip’d the archive.v– work verbosely, showing me the name of each file you add. This is optional.f– specifies that you want to use the following filename (mydirectory.tgz) as the name of the archive.
http://www.devdaily.com/blog/post/linux-unix/how-work-files-tar-gzip-tgz
Advertisement