Skip to content

Instantly share code, notes, and snippets.

@boywijnmaalen
Last active April 9, 2018 05:15
Show Gist options
  • Save boywijnmaalen/dd8529a4579bda1292ad to your computer and use it in GitHub Desktop.
Save boywijnmaalen/dd8529a4579bda1292ad to your computer and use it in GitHub Desktop.
Tar und untar a directory
# tar:
# -z : Compress archive using gzip program
# -c: Create archive
# -v: Verbose i.e display progress while creating archive
# -f: Archive File name
$ tar -zcvf archive-name.tar.gz directory-name
# untar:
# -x: Extract files
$ tar -zxvf archive-name.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment