In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how Linux decompresses and compresses gz files". In daily operation, I believe many people have doubts about how to decompress and compress gz files. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts of "how to decompress and compress gz files". Next, please follow the editor to study!
GZ is the compressed file in the UNIX system, the Gnu version of ZIP, and the function is the same as WINRAR compressed file extension. The file with the extension tar.gz is a compressed file, which is common under Linux and OSX. Both Linux and OSX can decompress and use this compressed file directly.
The specific parameters compressed into gz gzip * gzip file can be viewed using help.
Gzip-- help Usage: gzip [OPTION]. [FILE]... Compress or uncompress FILEs (by default, compress FILES in-place). Mandatory arguments to long options are mandatory for short options too. -c,-- stdout write on standard output, keep original files unchanged-d,-- decompress decompress-f,-- force force overwrite of output file and compress links-h,-- help give this help-k,-- keep keep (don't delete) input files-l,-- list list compressed file contents-L,-- license display software license-n -- no-name do not save or restore the original name and time stamp-N,-- name save or restore the original name and time stamp-Q,-quiet suppress all warnings-r,-- recursive operate recursively on directories-S,-- suffix=SUF use suffix SUF on compressed files-t,-- test test compressed file integrity-v,-verbose verbose mode-V,-- version display version number-1 -fast compress faster-9,-- best compress better With no FILE, or when FILE is -, read standard input. You can also view the decompression of gz gunzip * gunzip file.gz using help.
$gunzip-help Usage: / opt/compiler/gcc-4.8.2/bin/gunzip [OPTION]. [FILE]... Uncompress FILEs (by default, in-place). Mandatory arguments to long options are mandatory for short options too. -c,-- stdout write on standard output, keep original files unchanged-f,-force force overwrite of output file and compress links-k,-- keep keep (don't delete) input files-l,-- list list compressed file contents-n,-no-name do not save or restore the original name and time stamp-N,-- name save or restore the original name and time stamp-Q -- quiet suppress all warnings-r,-- recursive operate recursively on directories-S,-- suffix=SUF use suffix SUF on compressed files-t,-- test test compressed file integrity-v,-- verbose verbose mode-- help display this help and exit-- version display version information and exit With no FILE, or when FILE is -, read standard input. At this point, the study on "how to decompress and compress Linux files" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.