14行目: | 14行目: | ||
!xzcmp<br>xzdiff | !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). | |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). | |||
|- | |||
!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 |
2023年1月6日 (金) 12:06時点における版
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). |
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. |