Linux and Unix dircmp command

Quick links

About dircmp
Syntax
Examples
Related commands
Linux and Unix main page

About dircmp

Lists files in both directories and indicates whether the files in the directories are the same or different.

Syntax

dircmp [-d] [-s] [-w n] directoryone directorytwo.

-dCompare the contents of files with the same name in both directories and output a list telling what must be changed in the two files to bring them into agreement. The list format is described in diff(1).
-sDoes not tell you about the files that are the same.
-w nChange the width of the output line to n characters. The default width is 72.
directoryoneThe first directory for comparing.
directorytwoThe second directory for comparing.

Examples

dircmp dir1 dir2

Compares the directory dir1 with the directory dir2. Below is an example of the output you may receive when typing this command.

Feb 8 17:18 2001 Comparison of help issues Page 1

directory .
same ./favicon.ico
same ./logo.gif
same ./question.gif

Related commands

cmp
diff