ページの作成:「==関連コマンド== {| class="wikitable" summary="xz関連コマンド" !コマンド !概要 |- !unxz |is equivalent to xz --decompress. |- !xzcat |is equivalent to x…」
 
 
(同じ利用者による、間の8版が非表示)
1行目: 1行目:
xz is practically a [https://anken-hyouban.com/blog/2021/09/09/superset/ superset] of lzma, unlzma, and lzcat as found from LZMA Utils 4.32.x.  In most cases, it  is  possible to replace [https://www.itmedia.co.jp/enterprise/articles/0906/19/news003.html LZMA] Utils with XZ Utils without breaking existing scripts.  There are some incompatibilities though, which may sometimes cause problems.
==関連コマンド==
==関連コマンド==
{| class="wikitable" summary="xz関連コマンド"
{| class="wikitable" summary="xz関連コマンド"
9行目: 11行目:
!xzcat
!xzcat
|is equivalent to xz --decompress --stdout.
|is equivalent to xz --decompress --stdout.
|-
!xzcmp<br>xzdiff
|invoke cmp(1) or diff(1) on files compressed with xz(1), lzma(1), gzip(1), bzip2(1), or lzop(1).  All options specified are passed directly to cmp(1) or diff(1).
|-
!xzgrep<br>xzegrep<br>xzfgrep
|invokes grep(1) on files which may be either uncompressed or compressed with xz(1), lzma(1), gzip(1), bzip2(1), lzop(1), or zstd(1).  All options specified are passed directly to grep(1).If  xzgrep  is  invoked  as xzegrep or xzfgrep then egrep(1) or fgrep(1) is used instead of grep(1).
|-
!xzless<br>lzless
|filter  that displays text from compressed files to a terminal.  It works on files compressed with xz(1) or lzma(1).  If no files are given, xzless reads from standard input. xzless uses less(1) to present its output.
|-
!xzmore<br>lzmore
|filter which allows examination of xz(1) or lzma(1) compressed text files one screenful at a time on a soft-copy terminal.
|-
!lzmainfo
|shows information stored in the .lzma file header.  It reads the first 13 bytes from the specified file, decodes the header, and prints it to standard output in human readable format.
|-
!lzgrep<br>lzegrep<br>lzfgrep
|The same applies to names lzgrep, lzegrep, and lzfgrep, which are provided for backward compatibility with LZMA Utils.
|-
|-
!lzma
!lzma
|xz is practically a [https://anken-hyouban.com/blog/2021/09/09/superset/ superset] of lzma, unlzma, and lzcat as found from LZMA Utils 4.32.x.  In most cases, it  is possible to replace LZMA Utils with XZ Utils without breaking existing scripts.  There are some incompatibilities though, which may sometimes cause problems.
|is equivalent to xz --format=lzma.
|-
!unlzma
|is equivalent to xz --format=lzma --decompress.
|-
!lzcat
|is equivalent to xz --format=lzma --decompress --stdout.
|-
!lzcmp<br>lzdiff
|are provided for backward compatibility with LZMA Utils.
|}

2023年1月6日 (金) 12:12時点における最新版

xz is practically a superset of lzma, unlzma, and lzcat as found from LZMA Utils 4.32.x. In most cases, it is possible to replace LZMA Utils with XZ Utils without breaking existing scripts. There are some incompatibilities though, which may sometimes cause problems.

関連コマンド

コマンド 概要
unxz is equivalent to xz --decompress.
xzcat is equivalent to xz --decompress --stdout.
xzcmp
xzdiff
invoke cmp(1) or diff(1) on files compressed with xz(1), lzma(1), gzip(1), bzip2(1), or lzop(1). All options specified are passed directly to cmp(1) or diff(1).
xzgrep
xzegrep
xzfgrep
invokes grep(1) on files which may be either uncompressed or compressed with xz(1), lzma(1), gzip(1), bzip2(1), lzop(1), or zstd(1). All options specified are passed directly to grep(1).If xzgrep is invoked as xzegrep or xzfgrep then egrep(1) or fgrep(1) is used instead of grep(1).
xzless
lzless
filter that displays text from compressed files to a terminal. It works on files compressed with xz(1) or lzma(1). If no files are given, xzless reads from standard input. xzless uses less(1) to present its output.
xzmore
lzmore
filter which allows examination of xz(1) or lzma(1) compressed text files one screenful at a time on a soft-copy terminal.
lzmainfo shows information stored in the .lzma file header. It reads the first 13 bytes from the specified file, decodes the header, and prints it to standard output in human readable format.
lzgrep
lzegrep
lzfgrep
The same applies to names lzgrep, lzegrep, and lzfgrep, which are provided for backward compatibility with LZMA Utils.
lzma is equivalent to xz --format=lzma.
unlzma is equivalent to xz --format=lzma --decompress.
lzcat is equivalent to xz --format=lzma --decompress --stdout.
lzcmp
lzdiff
are provided for backward compatibility with LZMA Utils.