Архивирование и сжатие файлов
Добавлено: 03 фев 2015, 01:55
Код: Выделить всё
bunzip2 file1.bz2
Код: Выделить всё
gunzip file1.gz
Код: Выделить всё
gzip file1
Код: Выделить всё
bzip2 file1
Код: Выделить всё
gzip -9 file1
Код: Выделить всё
rar a file1.rar test_file
Код: Выделить всё
rar a file1.rar file1 file2 dir1
Код: Выделить всё
rar x file1.rar
Код: Выделить всё
unrar x file1.rar
Код: Выделить всё
tar -cvf archive.tar file1
Код: Выделить всё
tar -cvf archive.tar file1 file2 dir1
Код: Выделить всё
tar -tf archive.tar
Код: Выделить всё
tar -xvf archive.tar
Код: Выделить всё
tar -xvf archive.tar -C /tmp
Код: Выделить всё
tar -cvfj archive.tar.bz2 dir1
Код: Выделить всё
tar -xvfj archive.tar.bz2
Код: Выделить всё
tar -cvfz archive.tar.gz dir1
Код: Выделить всё
tar -xvfz archive.tar.gz
Код: Выделить всё
zip file1.zip file1
Код: Выделить всё
zip -r file1.zip file1 file2 dir1
Код: Выделить всё
unzip file1.zip