Skip to content

Instantly share code, notes, and snippets.

@samson-sham
Forked from TelmoM/tar.md
Created January 6, 2020 14:03
Show Gist options
  • Save samson-sham/5709eef9a6df3c35b21da04906161c87 to your computer and use it in GitHub Desktop.
Save samson-sham/5709eef9a6df3c35b21da04906161c87 to your computer and use it in GitHub Desktop.
TAR #tar

TAR

tar -zcvf archive-name.tar.gz directory-name

-z : Compress archive using gzip program
-c: Create archive
-v: Verbose i.e display progress while creating archive
-f: Archive File name

tar -zxvf archive-name.tar.gz
-x: Extract files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment