Skip to content

Instantly share code, notes, and snippets.

@BumbuKhan BumbuKhan/linux-bash
Created Nov 29, 2017

Embed
What would you like to do?
How to create tar.gz archive in linux command line
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Here’s what those switches actually mean:
-c: Create an archive.
-z: Compress the archive with gzip.
-v: Display progress in the terminal while creating the archive, also known as “verbose” mode. The v is always optional in these commands, but it’s helpful.
-f: Allows you to specify the filename of the archive.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.