Great! Isn’t it? You can also get detailed information about the compression using the ‘l’ option. That’s more than 90% saving in the system space. After compression, the size of the compressed file has come to around 3 kb. The data.txt is the file to be compressed. The data.7z is the filename of the compressed file. Here, the option ‘a’ is for archive or compression. Like, in this case, data.txt, you need to enter the following command: $ 7z a data.7z data.txt For instance, we would be compressing the data.txt file which is of size 50 kb at the moment. To do so, just use the ls -la command to show the list of all files and folders of the current directory. Here are the steps which you need to follow in order to compress files using the 7-zip on your Ubuntu machine: First of all, you need to select the file or folder to make a compressed file. Now you know the syntax of 7Zip on Ubuntu, you can move on to compressing and extracting files. Let us now take a look at How to use 7Zip on Ubuntu.
Apart from the GUI, you have used in Windows computers, 7Zip is also available to use with CLI with p7zip command. Apart from getting high compression ratio, you can get support for extracting and compressing RAR files on Ubuntu with 7Zip. From almost 2 decades now, 7Zip allowed us to get a higher compression ratio. If you’ve ever tried to send large files then you would definitely know about 7Zip.