windows:xz

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

次のリビジョン
前のリビジョン
windows:xz [2020/07/03 04:02] – 作成 ともやんwindows:xz [2020/09/11 19:08] (現在) ともやん
行 1: 行 1:
-<html> 
-  <style> 
-    #result pre, #mincode pre { 
-      overflow: hidden; 
-      font-size: 10px; 
-    } 
-    #result_long pre { 
-      height: 400px; 
-      overflow: scroll; 
-      overflow-x: hidden; 
-      font-size: 10px; 
-    } 
-    #logo { 
-      background-color: white; 
-      padding: 10px; 
-      width: fit-content; 
-    } 
-    #logo p { 
-      margin: 0; 
-    } 
-  </style> 
-</html> 
 ====== xz 圧縮 ====== ====== xz 圧縮 ======
 +
 +===== ファイルの圧縮/解凍[xz]=====
 +
 +==== .xz(圧縮) ====
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ xz filename.tar
 +</code>
 +</WRAP>
 +※filename.tar ファイルを圧縮後に削除して filename.tar.xz が生成される。\\
 + ファイルを削除したくない場合は xz **[-k, --keep]** filename.tar を使用する。(keep オプション)\\
 +
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ xz -v9 C:\wsl\FedoraRemix_x86_64.tar
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +C:\wsl\FedoraRemix_x86_64.tar (1/1)
 +  4.6 %         3.2 MiB / 334.9 MiB = 0.009    14 MiB/s       0:24   8 min 20 s
 +</code>
 +</WRAP>
 +※**-v, --verbose** オプションを使用して進行状況を表示する。\\
 + **-0 ... -9** オプションを使用して高圧縮する。(デフォルト 6)\\
 +
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ xz -vv9 C:\wsl\Fedora32_x86_64.tar
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +xz: Filter chain: --lzma2=dict=64MiB,lc=3,lp=0,pb=2,mode=normal,nice=64,mf=bt4,depth=0
 +xz: 674 MiB of memory is required. The limiter is disabled.
 +xz: Decompression will need 65 MiB of memory.
 +C:\wsl\Fedora32_x86_64.tar (1/1)
 + 24.6 %          7.1 MiB / 44.3 MiB = 0.159   2.6 MiB/s       0:17    1 min 0 s
 +</code>
 +</WRAP>
 +※**-v, --verbose** オプションを**ダブル**で使用して進行状況を表示する。\\
 + **-0 ... -9** オプションを使用して高圧縮する。(デフォルト 6)\\
  
 ===== インストール ===== ===== インストール =====
行 30: 行 50:
 </code> </code>
 </WRAP> </WRAP>
-<WRAP prewrap 100% #result_long>+<WRAP prewrap 100% #result>
 <code powershell> <code powershell>
 Installing 'xz' (5.2.5) [64bit] Installing 'xz' (5.2.5) [64bit]
行 44: 行 64:
 </code> </code>
 </WRAP> </WRAP>
 +
 +動作確認を行う。\\
 +<WRAP prewrap 100%>
 +<code powershell>
 +$ xz --help
 +</code>
 +</WRAP>
 +<WRAP prewrap 100% #result>
 +<code powershell>
 +Usage: xz [OPTION]... [FILE]...
 +Compress or decompress FILEs in the .xz format.
 +
 +  -z, --compress      force compression
 +  -d, --decompress    force decompression
 +  -t, --test          test compressed file integrity
 +  -l, --list          list information about .xz files
 +  -k, --keep          keep (don't delete) input files
 +  -f, --force         force overwrite of output file and (de)compress links
 +  -c, --stdout        write to standard output and don't delete input files
 +  -0 ... -9           compression preset; default is 6; take compressor *and*
 +                      decompressor memory usage into account before using 7-9!
 +  -e, --extreme       try to improve compression ratio by using more CPU time;
 +                      does not affect decompressor memory requirements
 +  -T, --threads=NUM   use at most NUM threads; the default is 1; set to 0
 +                      to use as many threads as there are processor cores
 +  -q, --quiet         suppress warnings; specify twice to suppress errors too
 +  -v, --verbose       be verbose; specify twice for even more verbose
 +  -h, --help          display this short help and exit
 +  -H, --long-help     display the long help (lists also the advanced options)
 +  -V, --version       display the version number and exit
 +
 +With no FILE, or when FILE is -, read standard input.
 +
 +Report bugs to <lasse.collin@tukaani.org> (in English or Finnish).
 +XZ Utils home page: <https://tukaani.org/xz/>
 +</code>
 +</WRAP>
 +
 +===== 参考文献 =====
 +[[https://www.atmarkit.co.jp/ait/articles/1810/12/news037.html|【 xz 】コマンド/【 unxz 】コマンド――ファイルを圧縮/伸張する:Linux基本コマンドTips(249) - @IT]]\\
  
  • windows/xz.1593716537.txt.gz
  • 最終更新: 2020/07/03 04:02
  • by ともやん