How To Install Cmp?
Install cmp
-
Debian
apt-get install diffutilsClick to copy -
Ubuntu
apt-get install diffutilsClick to copy -
Alpine OS
apk add diffutilsClick to copy -
Arch Linux
pacman -S diffutilsClick to copy -
Kali Linux
apt-get install diffutilsClick to copy -
CentOS
yum install diffutilsClick to copy -
Fedora
dnf install diffutilsClick to copy -
Raspbian
apt-get install diffutilsClick to copy -
macOS
brew install diffutilsClick to copy
Compare two files.
How to use cmp?
Below are few example commands for cmp that you can use in the terminal.
Find the byte number and line number of the first difference between the files:cmp file1 file2Click to copyFind the byte number and differing bytes of every difference:cmp -l file1 file2Click to copy
To install the latest version of cmp in your favorite operating system just copy the cmp installation command from above and paste it into terminal. It will download and install the latest version of cmp 2026 package in your OS.




