Esempio di compressione:

tar cvzf test.tar.gz /home/test (non mettere lo slash alla fine dell’ultima directory)

Esempio di decompressione:
tar -xvf test.tar.gz

Vedere il contenuto di un file tar.gz:
tar -tvf test.tar.gz

Estrai un singolo file:
tar -zxvf test.tar.gz prova.xml

Estrai tutti i files che hanno una certa estensione:
tar -zxvf test.tar.gz --wildcards '*.php'