linux extract tar directory code example
Example 1: linux tar zip folder
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
Example 2: extract tar.gz linux command line
tar xvzf file.tar.gz
tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
tar xvzf file.tar.gz