Přihlásit | Registrovat

ARCHÍVY/KOMPRIMACE

(komprimace, …)

bunzip2

bunzip2 file1.bz2 rozbalí soubor 'file1.bz2'

bzip2

bzip2 file1 zabalí soubor 'file1'

gunzip

gunzip file1.gz rozbalí soubor 'file1.gz'

gzip

gzip file1 zabalí soubor 'file1'
gzip -9 file1 zabalí soubor v maximálním kompresním poměru

rar

rar a file1.rar test_file vytvoří archiv pomocí programu rar s názvem 'file1.rar'
rar a file1.rar file1 file2 dir1 zabalí soubory 'file1', 'file2' a adresář 'dir1' dohromady
rar x file1.rar rozbalí rar archiv

unrar

unrar x file1.rar rozbalí rar archiv

tar

tar -cvf archive.tar file1 vytvoří nezabalený tar archiv
tar -cvf archive.tar file1 file2 dir1 vytvoří archiv obsahující 'file1', 'file2' a 'dir1'
tar -tf archive.tar zabrazí obsah archivu
tar -xvf archive.tar rozbalí tar archiv
tar -xvf archive.tar -C /tmp rozbalí tar archiv do adresáře '/tmp'
tar -cvfj archive.tar.bz2 dir1 vytvoří komprimovaný bzip2 soubor obsahující tar archiv
tar -xvfj archive.tar.bz2 rozbalí komprimovaný bzip2 soubor včetně tar archivu
tar -cvfz archive.tar.gz dir1 vytvoří gzip soubor obsahující tar archiv
tar -xvfz archive.tar.gz rozbalí komprimovaný gzip soubor včetně tar archivu

zip

zip file1.zip file1 vytvoří archiv programem zip
zip -r file1.zip file1 file2 dir1 zabalí několik souborů a adresářů dohromady

unzip

unzip file1.zip rozbalí zip archiv

Mandriva Wiki
system/prikazovy_radek/archivy.txt · Poslední úprava: 2010/12/11 15:56 autor: yullaw