Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of decompressing parameters of gzip and gunzip

2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "the method of decompressing parameters of gzip and gunzip". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

How to compress and retain source files in Linux:

Gzip-c filename > filename.gz

Linux method for decompressing and retaining source files:

Gunzip-c filename.gz > filename

The usage of gunzip

1. Action

The function of the gunzip command is to extract the file, and the permission is for all users.

two。 Format

Gunzip [- acfhlLnNqrtvV] [- s] [file.]

Or gunzip [- acfhlLnNqrtvV] [- s] [directory]

3. Main parameters

-an or-- ascii: use ASCII text mode.

-c or-- stdout or-- to-stdout: output the decompressed file to a standard output device.

-f or-force: forcibly unzip the compressed file, regardless of whether the file name or hard connection exists, and whether the file is a symbolic link.

-h or-- help: online help.

-l or-- list: lists information about the compressed file.

-L or-- license: displays version and copyright information.

-n or-- no-name: if the compressed file contains the original file name and timestamp, it will be ignored and not processed.

-N or-- name: when unzipping, if the compressed file contains the original file name and timestamp, save it back to the unpacked file.

-Q or-- quiet: no warning message is displayed.

-r or-- recursive: recursive processing that processes all files and subdirectories under the specified directory.

-S or-- suffix: change the compressed suffix string.

-t or-- test: test whether the compressed file is correct.

-v or-- verbose: displays the instruction execution process.

-V or-- version: displays version information.

4. Description

Gunzip is a widely used unzipping program that is used to unzip files compressed by gzip, which have a default final extension of ".gz". In fact, gunzip is a hard connection to gzip, so whether it is compressed or decompressed, it can be done separately through the gzip instruction.

This is the end of the introduction of "the method of decompressing parameters for gzip and gunzip". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report