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

How to extract a file using the gunzip command of linux

2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

This article mainly introduces how to use linux's gunzip command to extract files, which has a certain reference value, and friends who need it can refer to it. Let's take a look at it with me.

The gunzip command is used to extract files, which is a widely used decompression program. It is used to unzip files that have been compressed by gzip. These compressed files default to the final extension ".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 command.

Syntax format: gunzip [parameters]

Common parameters:

-an or-- ascii uses ASCII text mode-c or-- stdout or-- to-stdout to output the extracted file to standard output device-f or-force to forcibly unzip the compressed file, regardless of whether the file name or hard link exists and whether the file is symbolic link-h or-- help online help. -l or-- list list the relevant information about the compressed file-L or-- license display version and copyright information-n or-- no-name when unzipping, if the compressed file contains a distant file name and timestamp, it will be ignored and will not be processed when-N or-- name is decompressed, if the compressed file contains the original file name and timestamp Then save it back to the unlocked file-Q or-- quiet does not display a warning message-r or-- recursive recursive processing, process all files and subdirectories in the specified directory together-S or-- suffix change the compressed suffix string-t or-- test to test whether the compressed file is correct-v or-- verbose displays instruction execution-V or-- version displays version information

Reference example

Extract the file:

[root@linuxcool ~] # gunzip ab.gz

Decompress to show the detailed execution process:

[root@linuxcool] # gunzip-v 1.gz

Specify the suffix name to extract:

[root@linuxcool] # gunzip-v-S "mygz" 1.mygz above is how to use linux's gunzip command to extract the details of the file. Have you learned anything after reading it? If you want to know more about it, welcome to the industry information!

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