In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use the pigz command of Linux". In daily operation, I believe many people have doubts about how to use the pigz command of Linux. Xiaobian consulted all kinds of information and sorted out simple and easy operation methods. I hope to help you answer the doubts about "how to use the pigz command of Linux"! Next, please follow the small series to learn together!
Linux common command pigz command can be used to decompress files, the most important is to support multi-threaded parallel processing, decompression faster than gzip.
Pigz can be used to decompress files, an upgraded version of the parallel implementation of gzip
Syntax pigz [ -cdfhikKlLmMnNqrRtz0.. 9,11 ] [ -b blocksize ] [ -p threads ] [ -S suffix ] [ name ... ] unpigz [ -cfhikKlLmMnNqrRtz ] [ -b blocksize ] [ -p threads ] [ -S suffix ] [ name ... ] Parameters-0 to -9, -11 # Compression level (level 11, zopfli, is much slower) --fast, --best # Compression levels 1 and 9 respectively -b, --blocksize mmm # Set compression block size to mmmK (default 128K) -c, --stdout # Write all processed output to stdout (won't delete) -d, --decompress # Decompress the compressed input -f, --force # Force overwrite, compress .gz, links, and to terminal -F --first # Do iterations first, before block split for -11 -h, --help # Display a help screen and quit -i, --independent # Compress blocks independently for damage recovery -I, --iterations n # Number of iterations for -11 optimization -J, --maxsplits n # Maximum number of split blocks for -11 -k, --keep # Do not delete original file after processing -K, --zip # Compress to PKWare zip (.zip) single entry format -l, --list # List the contents of the compressed input -L, --license # Display the pigz license and quit -m, --no-time # Do not store or restore mod time -M, --time # Store or restore mod time -n, --no-name # Do not store or restore file name or mod time -N, --name # Store or restore file name and mod time -O --oneblock # Do not split into smaller blocks for -11 -p, --processes n # Allow up to n compression threads (default is the number of online processors, or 8 if unknown) -q, --quiet # Print no messages, even on error -r, --recursive # Process the contents of all subdirectories -R, --rsyncable # Input-determined block locations for rsync -S, --suffix .sss # Use suffix .sss instead of .gz (for compression) -t, --test # Test the integrity of the compressed input -v, --verbose # Provide more verbose output -V --version # Show the version of pigz -Y --synchronous # Force output file write to permanent storage -z, --zlib # Compress to zlib (.zz) instead of gzip format -- # All arguments after "--" are treated as files Instance can be used in conjunction with tar, compression command
tar -cvf - dir1 dir2 dir3 |pigz -p 8 > output.tgz decompression command
pigz -p 8 -d output.tgz If it is in gzip format, tar decompression is also supported.
tar -xzvf output.tgz At this point, the study of "how to use the pigz command in Linux" is over, hoping to solve everyone's doubts. Theory and practice can better match to help everyone learn, go and try it! If you want to continue learning more relevant knowledge, please continue to pay attention to the website, Xiaobian will continue to strive to bring more practical articles for everyone!
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.