Skip to content

Instantly share code, notes, and snippets.

@mordr
Created May 10, 2019 18:29
Show Gist options
  • Save mordr/8286590cec464229a5fef49f7bc830b4 to your computer and use it in GitHub Desktop.
Save mordr/8286590cec464229a5fef49f7bc830b4 to your computer and use it in GitHub Desktop.
Simple compress/uncompress directory

Compress a directory

tar -zcvf ${name-of-compressed-directory}.tar.gz ${directory-to-compress}

Uncompress a directory

tar -zxvf ${name-of-compressed-directory}.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment