Skip to content

Instantly share code, notes, and snippets.

@unixsam
Created August 12, 2019 19:43
Show Gist options
  • Save unixsam/e5ed29170a40baf067dc453fded0e7f8 to your computer and use it in GitHub Desktop.
Save unixsam/e5ed29170a40baf067dc453fded0e7f8 to your computer and use it in GitHub Desktop.
How to compress a whole directory in Linux or Unix
You need to use the tar command as follows (syntax of tar command):
tar -zcvf archive-name.tar.gz directory-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment