← 返回命令列表

Linux command

lzdiff 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Compare two lzip-compressed files

lzdiff [file1.lz] [file2.lz]

Show unified diff

lzdiff -u [file1.lz] [file2.lz]

Show context diff

lzdiff -c [file1.lz] [file2.lz]

说明

lzdiff compares two lzip-compressed files and shows differences. Automatically decompresses before comparing. Equivalent to running diff on decompressed contents. Passes options through to diff.

参数

-u
Unified diff format.
-c
Context diff format.

FAQ

What is the lzdiff command used for?

lzdiff compares two lzip-compressed files and shows differences. Automatically decompresses before comparing. Equivalent to running diff on decompressed contents. Passes options through to diff.

How do I run a basic lzdiff example?

Run `lzdiff [file1.lz] [file2.lz]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -u do in lzdiff?

Unified diff format.