6.33. Installing Diffutils

6.33.1. Installation of Diffutils

Install Diffutils by running the following commands:


./configure --prefix=/usr &&
make &&
make install

6.33.2. Contents

The Diffutils package contains the cmp, diff, diff3 and sdiff programs.

6.33.3. Description

6.33.3.1. cmp and diff

cmp and diff both compare two files and report their differences. Both programs have extra options which compare files in different situations.

6.33.3.2. diff3

The difference between diff and diff3 is that diff comprares 2 files, diff3 compares 3 files.

6.33.3.3. sdiff

sdiff merges two two files and interactively outputs the results.