您好,登錄后才能下訂單哦!
這篇文章主要介紹“Linux的pigz命令怎么使用”,在日常操作中,相信很多人在Linux的pigz命令怎么使用問(wèn)題上存在疑惑,小編查閱了各式資料,整理出簡(jiǎn)單好用的操作方法,希望對(duì)大家解答”Linux的pigz命令怎么使用”的疑惑有所幫助!接下來(lái),請(qǐng)跟著小編一起來(lái)學(xué)習(xí)吧!
pigz命令可以用來(lái)解壓縮文件,最重要的是支持多線(xiàn)程并行處理,解壓縮比gzip快。
可以用來(lái)解壓縮文件,gzip的并行實(shí)現(xiàn)升級(jí)版
pigz [ -cdfhikKlLmMnNqrRtz0..9,11 ] [ -b blocksize ] [ -p threads ] [ -S suffix ] [ name ... ] unpigz [ -cfhikKlLmMnNqrRtz ] [ -b blocksize ] [ -p threads ] [ -S suffix ] [ name ... ]
-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
可以結(jié)合tar使用, 壓縮命令
tar -cvf - dir1 dir2 dir3 | pigz -p 8 > output.tgz
解壓命令
pigz -p 8 -d output.tgz
如果是gzip格式,也支持用tar解壓
tar -xzvf output.tgz
到此,關(guān)于“Linux的pigz命令怎么使用”的學(xué)習(xí)就結(jié)束了,希望能夠解決大家的疑惑。理論與實(shí)踐的搭配能更好的幫助大家學(xué)習(xí),快去試試吧!若想繼續(xù)學(xué)習(xí)更多相關(guān)知識(shí),請(qǐng)繼續(xù)關(guān)注億速云網(wǎng)站,小編會(huì)繼續(xù)努力為大家?guī)?lái)更多實(shí)用的文章!
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀(guān)點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。