Tar viene utilizzato per creare archivi di files molto spesso in combinazione con programmi di compressione per ridurre lo spazio occupato dell'archivio.
Creare un archivio
tar cvf archivio.tar file1 file2 file3
Estrarre un archivio
tar xvf archivio.tar
Creare un archivio con i file contenuti nella nostra home
tar cvf home.tar /home/diego/*
Creare un archivio compresso (gzip)
tar cvfz archivio.tar.gz file1 file2 file3
Estrarre un archivio compresso
tar xvfz archivio.tar.gz
Creare un archivio compresso (bzip)
tar cjvf archivio.tar.bz2 /home/diego/*
Estrarre un archivio compresso
tar xjvf archivio.tar.bz2
Nessun commento:
Posta un commento