Skip to content

Instantly share code, notes, and snippets.

@trajakovic
Created October 23, 2013 11:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trajakovic/7117118 to your computer and use it in GitHub Desktop.
Save trajakovic/7117118 to your computer and use it in GitHub Desktop.
Tar combinations
-z: Compress archive using gzip program
-c: Create archive
-v: Verbose i.e display progress while creating archive
-f: Archive File name
(this creates archive)
tar -zcvf archive_name.tar.gz /home/tom/and/jerry/
-x: Extract files
(this extracts archive)
tar -zxvf archive_name.tar.gz [-C /output/folder]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment