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:

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:

$ 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!

Ubuntu Server Admin

Recent Posts

What is RDMA over Converged Ethernet (RoCE)?

Previous articles walked through RDMA (Remote Direct Memory Access) as a programming model and InfiniBand…

19 hours ago

🚀 How to Deploy Cosmos Cloud on Ubuntu VPS

This article provides a guide to deploy Cosmos Cloud on Ubuntu VPS. What is Cosmos…

2 days ago

Beyond tokens per watt – using Ubuntu 26.04 LTS for AI

Tokens per watt (TpW) – the measure of useful AI work produced per watt of…

5 days ago

Small PRs, big speedups: The Ruby performance work you almost missed

Normally I just fire off a tweet when I spot a nice performance PR landing…

5 days ago

A look into Ubuntu Core 26: Deploying AI models on Renesas RZ/V series for production

Welcome to this blog series which explores innovative uses of Ubuntu Core. Throughout this series,…

6 days ago

RISC-V profiles – why is RVA23 significant?

Introduction One of the important offerings of the RISC-V Instruction Set Architecture (ISA) is the…

6 days ago