PrintMyTargets LLC Logo

FAQ: How do I Unzip a 7-zip file on Linux?

Linux tutorial (Debian)

Linux tutorial for installing 7zip.

Step 1: Install p7zip

7-Zip is available on Linux as a command-line tool called 'p7zip'. If you would like to install this tool, please follow the steps outlined below. 

1. Open a Terminal

Open a terminal by clicking on the terminal icon or by pressing 'Ctrl + Alt + T' on your keyboard. 

2. Install p7zip

Type the following command and press 'Enter':

sudo apt update
sudo apt install p7zip-full

You may be prompted to enter your password to install the software. 

Step 2: Unzip Your Downloaded File

1. Locate the Downloaded File On Your Computer

Use the file manager or terminal to navigate to the folder where your downloaded file is currently located. 

2. Open the Terminal in the File's Directory

Right-click inside the folder and select "Open in Terminal", or you can navigate to the folder using the 'cd' command in the terminal. 

3. Extract the File Using p7zip

To extract the file, please type the following command and press 'Enter':

7z x yourfile.7z -o/home/username/Documents/unzipped/

The '-o' option here specifies the output directory for the extracted files. In this example, we are extracting the contents of the 7-zip file to: /home/username/Documents/unzipped/

Please ensure you do not include a space between the -o and the target directory. 

Step 3: Access Your Files

After you have successfully extracted the files from the 7-zip file, you will then be able to access them from the file manager just like any other file.