Архивы в Linux

Содержание
Создать архив
Распаковать архив
Связанные статьи

Создать архив

Пример: добавить все .jpg файлы из директории в архив

tar czf archive.tar.gz *.jpg

tar.gz

Распаковать архив

tar xvzf имя_архива.tar.gz

tar.bz2

tar xvjf имя_архива.tar.bz2

Чтобы распаковать архив в определённую директорию воспользуйтесь опцией -C или опцией --directory

tar -xf archive.tar -C /target/directory
tar -xf archive.tar.gz --directory /target/directory

rar

Установить unrar,

apt-get install unrar

затем

unrar имя_архива.rar

zip

Установить unzip,

apt-get install unzip

затем

unzip имя_архива.zip

Если эти способы не помогли можно попробовать поставить p7zip. Под иксами можно поставить peazip. В крайнем случае, можно воспользоваться on-line архиваторами, например wobzip

ktorrent обычно в архиве .tar.bz2 , он распаковывается с помощью:

tar -xvjf

Article author: Andrei Olegovich

Похожие статьи
Файлы
Linux
Bash
Директории
Ссылки
Изучить свободное место на диске
Объединить файлы
Объединить .pdf файлы
diff: сравнение файлов
find: поиск файлов
wget: скачивание файлов
rename: переименовать файлы
SCP: обмен файлами;
Архивация/Распаковка
tree: просмотр директорий
convert

Search this site

Subscribe to Telegram channel @aofeed to follow new articles and updates to old ones

Go to channel

@aofeed

Ask a question in the Telegram group

@aofeedchat

Contacts and cooperation:
I recommend our hosting beget.ru
Write to info@urn.su if you:
1. Want to write an article for our site or translate an article into your native language.
2. Want to place thematically relevant ads on the site.
3. Ads on my site pass maximum censorship. If you see an ad block unsuitable for school-age children, shocking or misleading - please contact us by e-mail
4. Found a mistake, inaccuracy, bug, etc. on the site. ... .......
5. Articles can be shared on social media by clicking a network icon: