Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Commands for archiving and zipping files.
tar
===
create new gunzipped tar
$ tar cvzf <name>.tar.gz file <files>
extract from gunzipped tar
$ tar xvzf <name>.tar.gz
list contents of gunzipped tar
$ tar tf <name>.tar.gz
zip
===
create new zip
$ zip <name>.zip file <files>
extract from zip
$ unzip <name>.zip
list contents of zip
$ unzip -l <name>.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment