当前位置:网站首页>Detailed explanation of gzip and gunzip decompression parameters

Detailed explanation of gzip and gunzip decompression parameters

2022-04-23 16:08:00 Learning is boundless, happy to make a boat

Linux How to compress and keep source files : gzip –c filename > filename.gz

Linux How to unzip and keep the source file : gunzip –c filename.gz > filename gunzip Usage of  

1 effect gunzip The function of the command is to extract the file , Permissions are all users .

Linux How to compress and keep source files :
gzip –c filename > filename.gz
Linux How to unzip and keep the source file :
gunzip –c filename.gz > filename
gunzip Usage of
  1. effect
gunzip The function of the command is to extract the file , Permissions are all users .
2. Format
gunzip [-acfhlLnNqrtvV][-s ][ file ...]
perhaps gunzip [-acfhlLnNqrtvV][-s ][ Catalog ]
3. main parameter
-a or --ascii: Use ASCII Text mode .
-c or --stdout or --to-stdout: Output the extracted file to the standard output device .
-f or -force: Force unpack compressed file , Regardless of the file name or hard connection , And whether the file is a symbolic connection .
-h or --help: Online Help .
-l or --list: List information about compressed files .
-L or --license: Display version and copyright information .
-n or --no-name: Decompression time , If the compressed file contains the original file name and time stamp , It will be ignored .
-N or --name: Decompression time , If the compressed file contains the original file name and time stamp , Save it back to the unwrapped file .
-q or --quiet: Do not display warning messages .
-r or --recursive: Recursive processing , Handle all files and subdirectories under the specified directory together .
-S or --suffix: Change the compressed suffix string .
-t or --test: Test whether the compressed file is correct .
-v or --verbose: Display during execution of instructions .
-V or --version: Display version information .
4. explain
gunzip Is a widely used decompression program , It's used to unravel gzip Compressed files , These compressed files have a default last extension of “.gz”. in fact ,gunzip Namely gzip The hard connection of , So whether it's compression or decompression , All available gzip Complete the instruction alone .

版权声明
本文为[Learning is boundless, happy to make a boat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231403594590.html