Common commands for using 7zip to decompress various files

Source: Internet
Author: User

    • 7zip Introduction
    • Format support
      • Compression decompression
      • Only unzip supported
    • Installation
      • Debian Ubuntu
      • ArchLinux
    • Use
      • Packaged
      • Extract
      • List information lists for a file
      • Check the integrity of the package
      • Update a compressed package
      • Delete the files in the package

7zip Introduction

7-zip is an open source software. Most of the source code is published under the GNU LGPL license agreement. The AES code is issued based on the BSD license. The UnRAR code is based on two licenses: the GNU LGPL and the UnRAR restricted license. Chinese Civil Service Network

Format supports compression/decompression

7z, XZ, ZIP, TAR, BZIP2, GZIP and WIM

Only unzip supported

ARJ, CAB, CHM, CPIO, Cramfs, DEB, DMG, FAT, HFS, ISO, LZH, LZMA, MBR, MSI, NSIS, NTFS, RAR, RPM, SquashFS, UDF, VHD, WIM, XAR, Z

Installing Debian/ubuntu
sudo apt-get install p7zipsudo#完整版
ArchLinux
-S
Use

7z [Adeltux] [-] [SWITCH] ...

Packaged
[[email protected] Downloads]$ ls testbag.hpp        hashtable.hpp  minpq.hpp  rbtree.hpp  uf.hpphashchain.hpp  maxpq.hpp      queue.hpp  stack.hpp[[email protected] Downloads]$ 7z a test.7z test...Everything is Ok[[email protected] Downloads]$
Extract

All file types that support decompression are the same

[poplar@archDownloads]$ 7z x test.7z  #解压到当前目录[poplar@archDownloads]$ 7z e test.7#加压到当前的tmp
List information lists for a file
[poplar@archDownloads]$ 7z l test.7z
Check the integrity of the package
[poplar@archDownloads]$ 7z t test.7z test
Update a compressed package
[poplar@archDownloads]$ 7z u test.7z test
Delete the files in the package

Delete the uf.hpp file in the package

[poplar@archDownloads]$ 7z d test.7z uf.hpp -r

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Common commands for using 7zip to decompress various files

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.