Skip to content

Instantly share code, notes, and snippets.

@MyExperiments
Created July 23, 2015 06:46
Show Gist options
  • Save MyExperiments/16fd024b8902b22952f4 to your computer and use it in GitHub Desktop.
Save MyExperiments/16fd024b8902b22952f4 to your computer and use it in GitHub Desktop.
Tar and restore tar files in linux
Tar
===
tar -cvf output.tar file1 file2 folder1/
Restore Tar
===========
tar -xvf output.tar
options
--------
-c : Create a tar ball.
-v : Verbose output (show progress).
-f : Output tar ball archive file name.
-x : Extract all files from archive.tar.
-t : Display the contents (file list) of an archive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment