![]() ![]() ![]() $ 7z a my_archive.7z file1 file2 dir1/ dir2/Įxample 4. Specify as many files or directories as you want, and they will all be compressed into the single archive. You can also compress a directory: $ 7z a my_archive.7z /path/to/sample_files/Įxample 3. $ 7z a my_archive.7z sample_fileĮxample 2. If an archive by the specified name doesn’t exist, it will be created. When you compress a file, you have to put a and an archive file name as follows. Now that 7-Zip is installed, let’s see how to compress some files.Įxample 1. Ubuntu, Debian, and Linux Mint: $ sudo apt install p7zip-fullįedora, AlmaLinux, Rocky Linux, Red Hat, CentOS: $ sudo dnf install p7zip*Īrch Linux and Manjaro: $ sudo pacman -S p7zip Use the appropriate command below to install 7-Zip with your Linux distro’s package manager. In this tutorial, you will see how to install 7-Zip on various Linux distributions and learn to use 7-Zip commands to perform compression and decompression of files and directories on the Linux command line. 7-Zip can also encrypt your compressed archives with AES-256. Although you can already compress files by using the tar and zip commands, 7-Zip can outperform other compression technologies in terms of compression ratio, as shown in our benchmark tests for the best compression tool in Linux. Hope you understood the tutorial on how to install 7-zip on Ubuntu 20.04.7-Zip is free software for compressing/decompressing files. Using l option to show the detail of compressed file: $ 7z l ģ. ![]() bashrc into a file named demo.zip: $ 7z a demo.zip. Using a option to archive or compress: $ 7z a fileįor example, I will compress 2 files. We will try compressing some files by using 7-zip. ![]() Then install p7zip-full package: $ sudo apt install p7zip-full It works on most operating systems and you can use it to extract files like 7z, zip, tar,…Īnd we will show you how to install 7-zip on Ubuntu 20.04 as you go through it below. One of the most popular software is 7-zip, this is software with a high compression ratio and does not win awards. When you move a large file or a large folder from one place to another, it is best to use compression tools to make this easier. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |