tar.gz linux command code example
Example 1: create tar gz file from directory
tar -czf tarball.tar.gz my_directory/
Example 2: untar tar.gz
tar -xzf file.tar.gz
Example 3: tar.gz terminal
tar -xzvf archive.tar.gz
Example 4: tar gz linux command
tar -czvf projects.tar.gz projects/
Example 5: extract tar.gz linux command line
tar xvzf file.tar.gz