Hexodus
3/4/2014 - 3:31 PM

This is how to compress a folder via shell on the webpage running linux.

This is how to compress a folder via shell on the webpage running linux.

In two steps:
1) tar -c -f archive_name.tar some_file_or_dir
2) gzip archive_name.tar

Found here:
http://superuser.com/questions/264952/how-to-compress-a-file-in-unix?rq=1

In one step:
tar cvpzf  archive_name.tgz some_file_or_dir