7zip for Linux is the best solution for file compression and decompression. And if you are the type of person who regularly deals with compressed files such as ZIP and RAR formats, well then, the 7zip should be on our list of installed apps.
For compressed files, 7zip is the only one that can compare head to head with the ever-popular WinRAR. But in reality, 7zip is the much better one. As a matter of fact, 7zip is a tool for many professionals who really know their stuff.
What is 7zip?
7zip is a powerful tool in the right hands. It is an open-source file archiver that can compress multiple files into one simplified cabinet-like folder and vice versa.
The 7zip was created by Igor Pavlov back in 1999. It supports the most known compression type of formats on both packing and unpacking methods. This includes ZIP, Gzip, bzip2, xz, tar and WIM for Windows installer.
Basically, the 7zip archiving tool is pretty much near-universal in terms of its focused purpose. It has a powerful compression algorithm and supports password protection. This app is a tool for benchmarking processing power by some experts. According to some reviewers, the 7zip is a tool far better than what the popular counterpart can do. Nevertheless, it is not perfect and has its own downsides.
There are two main accesses to use 7zip. One is through a command line using p7zip. The other one is through your typical graphical interface which is more user-friendly for most users. The 7zip for Linux will work more on the command-line support.
How to Install 7zip for Linux
For those of you that are not familiar with how apps are installed on Linux or any Linux-based distribution, this is the 7Zip tutorial written just for you. This will be the simplest coding you will ever do so you should be able to follow this if you manage to do this in repetition. Still, it’s not as easy as installing 7Zip for Windows. Yes, it’s just like they said, practice makes perfect.
On Ubuntu and some other Linux-based platform, 7zip is packaged as p7zip. To install p7zip, you will need to do this procedure. Here’s how it goes.
- The first thing you need to do is to launch the Terminal to execute some commands. If you cannot find the Terminal, you can use Ubuntu’s search service and type in Terminal.
- On the Terminal, type in this command: sudo apt-get update
- You will be asked to enter your password. Please do so as this first command will update your system.
- Once the system update finishes, you will need to type in this command: sudo apt-get install p7zip-full
- Again, you will need to enter your system password to confirm the command request.
- The command will now start to download the necessary files from the repository
- As soon as all the needed files are downloaded, you will be asked if you want to continue or not with the installation. Type “Y” for yes and “N” for no. In this case, just type “Y” and press the Enter key.
- This will now initiate the unpacking of the downloaded files and start setting it up for installation.
- When the command line appears again, it means the installation is through.
- To make sure that the p7zip is really installed on your Linux computer you will need to type in this command: sudo apt-qq list p7zip-full
- Type in your system password again to confirm the request.
- Read the following line and find the word “Installed.”
- Now type this command: sudo dpkg -s p7zip-full | grep Status
- The next line should say “Installed” again.
- That’s it. You now have 7zip installed on your Ubuntu system.
Now, if you want to know all the corresponding commands to execute some tasks, you will only need to launch the Terminal again. From the Terminal, just type in 7Z. It should show you the different types of commands that you can use. To execute any command, it should follow this pattern:
- 7z [command option] [archive file name & format] [files]
The “command options” are:
- a —means to add files in archive
- l —means to list the contents of archive
- u — means to update the files in the archive
- e — means to extract files from archive without their full path
- x — means to extract files from archive with their full path
- d — means to delete files from archive
For the “archive file name & format” you will type in the name of the compressed file that you want as output with the file format that you want like ZIP, RAR, or 7Z. For the “files” that the name of the file that you want to compress. To do this, here is an example and how to do it:
- Create a folder on your desktop.
- Paste the file inside that folder. Let’s assume that the file’s name is “Sample.”
- Now, still in the same folder, launch the Terminal.
- Now, type in this command: 7z a Sample.zip Sample
- Wait for a few seconds or minutes depending on the size of the file. The bigger the file, the longer the compression takes place.
- That’s it. A new file will now appear inside the folder with the name Sample.zip next to the original file named Sample.
For the old-timers and advanced users, these commands will be such ease. But if this is your first time, you will need some getting used to. Ubuntu and other Linux-based distributions are a bit complicated especially if you came from the point-and-click operating system like Windows 7 to 10.
Now, as a question for today’s topic, do you think the 7zip for Linux is a good tool? If not, do you have an alternative in mind? If you do, do tell us in the comment section. We would love to know your recommendations.
If you have any questions about today’s topic, please feel free to leave your message in the comment section below as well. We will try to get back to you as soon as we can.