Skip to content
pkgseek
All tools

cmp

File Inspection

Compare two files byte by byte and report the first difference.

Aliases: cmp · diffutils

Installation by platform

Package and binary names are factual values and are never translated.

Package verification report

Debian

VerifiedGotcha
package
diffutils
binary
cmp
repository
main
sudo apt install diffutils

Install package `diffutils`, then run `cmp`.

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
trixie/main1:3.10-4amd64/usr/bin/cmp

Verified 2026-07-02source

Ubuntu

VerifiedGotcha
package
diffutils
binary
cmp
repository
main/universe
sudo apt install diffutils

Install package `diffutils`, then run `cmp`.

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
focal/main1:3.7-3amd64/usr/bin/cmp
jammy/main1:3.8-0ubuntu2amd64/usr/bin/cmp
noble/main1:3.10-1build1amd64/usr/bin/cmp
resolute/main1:3.12-1amd64/usr/bin/cmp

Verified 2026-07-02source

Alpine

VerifiedGotcha
package
diffutils
binary
cmp
repository
main
sudo apk add diffutils

Install package `diffutils`, then run `cmp`.

Indexed package evidence

Current representative package builds linked from pkgseek's release and architecture index.

ReleaseVersionArchitectureVerified binary path
3.22/main3.12-r0x86_64/usr/bin/cmp
3.23/main3.12-r0x86_64/usr/bin/cmp
3.24/main3.12-r0x86_64/usr/bin/cmp
edge/main3.12-r0x86_64/usr/bin/cmp

Verified 2026-07-02source

Commands and flags

Flags are imported with their command-level source and verification date.

cmp

cmp [OPTION]... FILE1 [FILE2 [SKIP1 [SKIP2]]]

Verified 2026-07-02source

FlagDescriptionSince
--silent, -sSuppress normal output and rely on the exit status.—
--verbose, -lPrint byte numbers and differing byte values.—
--bytes, -n <count>Compare at most the specified number of bytes.—
--ignore-initial, -i <skip>Skip initial bytes before comparing.—