# -c Create a new archive
# -v Verbose output
# -f file.tar.gz Use archive file
# -z Filter the archive through gzip i.e. compress or decompress archive
tar -c -z -v -f yuhao_huang.tar.gz foo/
extract a gzipped
tarball into a directory
# -x Extract files from an arc
# -x Extract files from an archive
# -z Filter the archive through gzip i.e. compress or decompress archive
# -v Verbose output
# -f file.tar.gz Use archive file
tar -x -z -v -f yuhao_huang.tar.gz -C ~/Downloads/bar/
list the
content of gzipped tarball without extraction
# -z Filter the archive through gzip i.e. compress or decompress archive
# -v Verbose output
# -f file.tar.gz Use archive file
# -t List the contents of an archive
tar -z -t -v -f yuhao_huang.tar.gz