###comprime un fichero o directorio en archive.tar.gz
tar -czvf archive.tar.gz /path/to/directory-or-file
###descomprime el fichero archive.tar.gz en la carpeta /temp
tar -xzvf archive.tar.gz -C /temp
###comprime un fichero o directorio en archive.tar.gz
tar -czvf archive.tar.gz /path/to/directory-or-file
###descomprime el fichero archive.tar.gz en la carpeta /temp
tar -xzvf archive.tar.gz -C /temp