Categories: TutorialsUbuntu

How to Install 7-zip on Ubuntu 20.04

Introduction

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. One of the most popular software is 7-zip, this is software with a high compression ratio and does not win awards. It works on most operating systems and you can use it to extract files like 7z, zip, tar,…

And we will show you how to install 7-zip on Ubuntu 20.04 as you go through it below. Hope you understand.

Update the packages

Run the apt command:

$ sudo apt update

Output:

Sponsored

Then install p7zip-full package:

$ sudo apt install p7zip-full

Output:

Then you verify installed by:

$ 7z

Output:

Using 7-zip

We will try compressing some files by using 7-zip. Run ls -la:

$ ls -la

Output:

1. Using a option to archive or compress:

Sponsored
$ 7z a [compressed file] file

For example, I will compress 2 files: .profile and .bashrc into a file named demo.zip:

$ 7z a demo.zip .profile .bashrc

Output:

2. Using l option to show the detail of compressed file:

$ 7z l [compressed file]

For example:

$ 7z l demo.zip

Output:

3. Using e option to extract file:

$ 7z e [compressed file]

For example:

$ 7z e demo.zip

Output:

Conclusion

Hope you understood the tutorial on how to install 7-zip on Ubuntu 20.04.

Thanks for reading!

Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications including CCNA RS, SCP, and ACE. As an IT engineer and technical author, he writes for various websites.

Ubuntu Server Admin

Recent Posts

Web Engineering: Hack Week 2024

At Canonical, the work of our teams is strongly embedded in the open source principles…

19 hours ago

Ubuntu Weekly Newsletter Issue 873

Welcome to the Ubuntu Weekly Newsletter, Issue 873 for the week of December 29, 2024…

2 days ago

How to resolve WiFi Issues on Ubuntu 24.04

Have WiFi troubles on your Ubuntu 24.04 system? Don’t worry, you’re not alone. WiFi problems…

3 days ago

Remembering and thanking Steve Langasek

The following is a post from Mark Shuttleworth on the Ubuntu Discourse instance. For more…

3 days ago

How to Change Your Prompt in Bash Shell in Ubuntu

I don’t like my prompt, i want to change it. it has my username and…

3 days ago

The Silent Guardian: Why Bundler Checksums Are a Game-Changer for Your Applications

Introduction: A Fragile Trust The Ruby ecosystem relies heavily on RubyGems.org as the central platform…

4 days ago