Skip to content

Instantly share code, notes, and snippets.

@Hexodus
Created March 4, 2014 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hexodus/9348607 to your computer and use it in GitHub Desktop.
Save Hexodus/9348607 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment