In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Gunzip
Extract the files that have been compressed by gzip. The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.
1. Grammar
Gunzip [- acfhlLnNrtvV] [- S suffix] file
2. List of options
Option
Description
-h |-- help
Help information
-V |-- version
Display command version information
-f |-- force
Enforcement
-a |-- ascii
Text mode. This option is only supported on some non-Unix systems.
-c |-- stdout |-- to-stdout
Write the extracted file to standard output, and the source file remains unchanged. If there are multiple input files, the output consists of a series of independently compressed members. For better compression, connect all input files before compressing them.
-l |-- list
List information about compressed files
-L |-- licence
List the license for gzip and exit
-n |-- no-name
When unzipping, do not restore the original file name (only remove the gzip suffix from the compressed file name) if it exists, and do not restore the original timestamp (copy it from the compressed file) if it exists. This option is the default when unzipping.
-N |-- name
When unzipping, if present, restore the original file name and timestamp. This option is useful for systems that limit the length of file names or for systems that lose timestamps after file transfer.
-r |-- recursive
Recursively traverse the directory structure.
-t |-- test
Test the integrity of the compressed file
-v |-- verbose
Show detailed execution process
-S
When unzipping, when deriving the output file name from the input file name, add .suf to the beginning of the suffix list with an attempt.
3. Examples
1) decompression
[root@localhost weijie] # gunzip-v 1.gz / / decompress to show the detailed execution process
1.gz: 9.4%-replaced with 1
2) specify the file suffix
[root@localhost weijie] # gunzip-v 1.mygz / / decompress. The suffix is not gz. An error was reported.
Gzip: 1.mygz: unknown suffix-- ignored
[root@localhost weijie] # gunzip-v-S "mygz" 1.mygz / / specifies a suffix without error reporting
1.mygz: 9.4%-- replaced with 1.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.