Linux 7z compression software

Source: Internet
Author: User
7z is an open source compression software. The compression ratio is higher than that of WinRAR. I will not talk about the use of windows, but now I will talk about its use in Linux.
First of all, download the Linux version of 7z, but on Linux, The 7z is called p7zip rather than 7z.
I am running the tar version. It doesn't matter if the installation is not completed after the installation. You just need to execute the command and directly go to the bin directory. The following describes the basic decompression and compression commands:
Decompress the file:
7z x manager.7z-r-o/home/baby/desktop
I will explain the following:
X indicates to decompress the file and decompress it according to the original directory (there is also a parameter E
But it will decompress all the files to the root instead of the original folder)
Manager.7z
It is a compressed file. here you need to replace it with your own. If the directory is not in the current directory, you must add the complete directory.
-R indicates recursion of all subfolders
-O indicates the directory to which the files are extracted. Note that the directory is directly connected without spaces after-o.
Compressed file/folder
7z A-t7z-r manager.7z/home/baby/desktop/manager /*
I will explain the following:
A Indicates adding a file/folder to the compressed package
-T indicates the compression type, which is generally set to 7z.
-R indicates recursion of all subfolders
Manager.7z is the compressed package name
/Home/baby/desktop/manager/* is the directory to be compressed. * indicates all files in the directory.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.