eoiioe A complete list of decompression commands under Linux
Original address: http://www.cnblogs.com/eoiioe/archive/2008/09/20/1294681.html
.tar
Unpacking: tar xvf FileName.tar
Packaging: tar cvf FileName.tar DirName
( Note: tar is packaged, not compressed!)
——————————————
.gz
Decompression 1: gunzip FileName.gz
Decompression 2: gzip -d FileName.gz
Compression: gzip FileName
.tar.gz and .tgz
Decompression: tar zxvf FileName.tar.gz
Compression: tar zcvf FileName.tar.gz DirName
——————————————
.bz2
Decompression 1: bzip2 -d FileName.bz2
Decompression 2: bunzip2 FileName.bz2
Compression: bzip2 -z FileName
.tar.bz2
Decompression: tar jxvf FileName.tar.bz2
Compression: tar jcvf FileName.tar.bz2 DirName
——————————————
.bz
Extract 1: bzip2 -d FileName.bz
Extract 2: bunzip2 FileName.bz
Compression: Unknown
.tar.bz
Extract: tar jxvf FileName.tar.bz
Compression: Unknown
——————————————
.Z
Decompression: uncompress FileName.Z
Compression: compress FileName
.tar.Z
Decompression: tar Zxvf FileName.tar.Z
Compression: tar Zcvf FileName.tar.Z DirName
————————————————
.zip
Unzip: unzip FileName.zip
Compression: zip FileName. zip DirName
——————————————
.rar
Extract: rar x FileName.rar
Compress: rar a FileName.rar DirName
—————————— ————
.lha
Decompression: lha -e FileName.lha
Compression: lha -a FileName.lha FileName
————————————————
.rpm
Unpacking: rpm2cpio FileName.rpm | cpio -div
————————————————
.deb
Unpack: ar p FileName.deb data.tar.gz | tar zxf -
—————— ——————————
.tar .tgz .tar.gz .tar.Z .tar.bz .tar.bz2 .zip .cpio .rpm .deb .slp .arj .rar .ace .lha . lzh .lzx .lzs .arc .sda .sfx .lnx .zoo .cab .kar .cpt .pit .sit .sea
Decompression: sEx x FileName.*
Compression: sEx a FileName.* FileName
sEx just calls the relevant program , it does not have compression or decompression functions, please note!
gzip command
Reducing file size has two obvious benefits. One is that it can reduce storage space, and the other is that it can reduce the transmission time when transferring files over the network. gzip is a command commonly used in Linux systems to compress and decompress files. It is both convenient and easy to use.
Syntax: gzip [options] Compressed (decompressed) file name. The meaning of each option of this command is as follows:
-c writes the output to the standard output and retains the original file. -d Decompress the compressed file. -l For each compressed file, display the following fields: size of compressed file; size of uncompressed file; compression ratio; name of uncompressed file -r Recursively search the specified directory and compress or decompress all files in it. -t test, check whether the compressed file is complete. -v For each compressed and decompressed file, display the file name and compression ratio. -num adjusts the compression speed with the specified number num, -1 or --fast indicates the fastest compression method (low compression ratio), -9 or --best indicates the slowest compression method (high compression ratio). The system default value is 6. Command example:
gzip *% Compress each file in the current directory into a .gz file. gzip -dv *% Decompress each compressed file in the current directory and list detailed information. gzip -l *% displays detailed information about each compressed file in Example 1 without decompressing it. gzip usr.tar% compresses the tar backup file usr.tar, and the extension of the compressed file is .tar.gz.
The above introduces the complete list of decompression commands under eoiioe Linux, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











To install the Linux kernel on Ubuntu22.04, you can follow the following steps: Update the system: First, make sure your Ubuntu system is the latest, execute the following command to update the system package: sudoaptupdatesudoaptupgrade Download the kernel file: Visit the official Linux kernel website () to download Required kernel version. Select a stable version and download the source code file (with .tar.gz or .tar.xz extension), for example: wget Unzip the file: Use the following command to unzip the downloaded kernel source code file: tar-xflinux-5.14.tar. xz install build dependencies: Install the tools and dependencies required to build the kernel. Execute

Dynamic compression Dynamic compression actually means that the nginx server compresses the compiled creation. You need to enable the following configuration in the http and https modules of nginx.conf: gzipon; #Enable gizo compression gzip_min_length1k; #gizp compression starting point, only if the file is larger than 1k Compression gzip_comp_level6;#The larger the compression level number, the smaller the compression, but the more performance consumption depends on the actual situation gzip_proxiedany;#Enabled when nginx is used as a reverse proxy. For details, see the official documentation: http://nginx.org/en/docs /http/ngx_http_gzip

Nginx turns on the Gzip compression function, which can compress the css, js, xml, and html files of the website during transmission, improve the access speed, and then optimize the performance of Nginx! Images, videos and other multimedia files and large files on the Web website are compressed due to compression The effect is not good, so there is no need to support compression for images. If you want to optimize, you can set the life cycle of the image to be longer and let the client cache it. After turning on the Gzip function, the Nginx server will compress the sent content, such as css, js, xml, html and other static resources according to the configured policy, so that the size of the content is reduced, and the user will process it before receiving the returned content. The compressed data is displayed to the customer. so

Although Windows 11 allows you to extract files from multiple archive formats, creating them has been limited to ZIP, that is, until now. Windows 11 also now allows you to create 7Z and TAR archive files natively, which can be done like a normal ZIP file without relying on third-party tools. How to create 7Z and TAR archive files on Windows 11 without third-party software Earlier, Windows 11 gained support for extracting various archive file formats including .rar, .7z, .tgz, .tar.gz, .tar.bz2 and so on. However, creating them is limited to ZIP archives. However, there is no support for compressing files into 7Z and TAR archive file formats.

Preface gzip (gnu-zip) is a compression technology. After gzip compression, the page size can be reduced to 30% or even smaller than the original size. In this way, users will browse the page much faster. The gzip compressed page needs to be supported by both the browser and the server. It is actually server-side compression. After being transmitted to the browser, the browser decompresses and parses it. We don’t need to worry about the browser, because most current browsers support parsing gzip pages. Whether it is front-end or back-end, nginx is often used when deploying projects, and small projects often use a reverse proxy or something. Today I will be simple and direct and talk about one of the points - gzip. If there are any errors, please correct me. Generally used on the server side is u

In Linux, the gzip command is used to compress and decompress files. The extension of the new file compressed by this command is usually marked as ".gz", and the syntax is "gzip [option] source file". The source file in the syntax refers to an ordinary file when performing a compression operation; when performing a decompression operation, it refers to a compressed file. The gzip command can only be used to compress files, not directories. Even if a directory is specified, it can only compress all files in the directory. gzip is a command often used to compress and decompress files in Linux systems. The extension of a new file compressed by this command is usually marked as ".gz". Let me emphasize again that the gzip command can only be used to compress files, not objects.

Python is a simple and easy-to-learn programming language with a rich standard library, which includes the gzip module for file compression and decompression. This article will introduce how to use the gzip module to compress and decompress files, with code examples. First, we need to import the gzip module: importgzip Next, we will introduce how to use the gzip module to compress and decompress files. File Compression Compressing files using the gzip module is very simple. We can use ope

The CentOS7 system provides a variety of commands for file compression and decompression operations. The following are some commonly used commands and their usage. tar: The tar command is used to package a file or directory and optionally compress it into a tar archive. Create tar compressed package: tar-cvfarchive.tarfile1file2directory Decompress tar compressed package: tar-xvfarchive.tar Create tar.gz compressed package: tar-czvfarchive.tar.gzfile1file2directory Decompress tar.gz compressed package: tar-xzvfarchive.tar.gz Create tar .bz2 compressed package: t
