Monday, September 17, 2007

Using tar command

tar -cf file.tar /directory (for TAR)
tar -jcvf file.tar.bzip2 /directory (for BZIP2)
tar -zcvf file.tar.gz /directory (for tar.gz)
tar cf - target | gzip -c > target.tgz (for TGZ)

No comments: