Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to use the compression software 7-zip in Linux

Shulou Source: shulou.com Published: 2022-06-01 08:05:19 09月30日 Update

This article mainly explains "how to use the compression software 7-zip in Linux". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how to use the compression software 7-zip in Linux.

7-zip is an open source compression software. It uses the new compression format of 7z and supports high compression ratio. Therefore, it is considered to be better software than the compression tool mentioned earlier. Under Linux, it is available through the p7zip package, which contains three binaries: 7z, 7za and 7zr. Readers can refer to p7zip wiki to understand the differences between these three binaries. In this article, we will use 7zr to explain the use of 7-zip. The archive file has the suffix '.7z'.

The basic usage is as follows:

A) create an archive

The code is as follows:

7zr an archive-name.7z file-name (s) / directory-name (s)

Create an archive file

B) list archived inclusion files

The code is as follows:

7zr l archive-name.7z

List the files contained in the archive

C) extraction of archived documents

The code is as follows:

7zr e archive-name.7z

Extraction and archiving

D) Update the archive file

The code is as follows:

7zr u archive-name.7z new-file

Update an archive file

E) remove files from the archive

The code is as follows:

7zr d archive-name.7z file-to-be-deleted

Delete a file

Confirm file deletion

Thank you for your reading, the above is the content of "how to use the compression software 7-zip in Linux". After the study of this article, I believe you have a deeper understanding of how to use the compression software 7-zip in Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: Files software code learning binary content software packages updates different three between can be passed suffixes that is tools ideas situations articles more formats Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker OPPO Reno Linux Huawei Shulou Information