dircmp [ -ds ] [ -wn ]
The dircmp command examines dir1 and
dir2 and generates tabulated information about the
contents of the directories. Listings of files that are unique to
each directory are generated in addition to a list that indicates
whether the files common to both directories have the same contents.
dircmp takes the following options:
If the -d option is not specified, dircmp
compares only text and empty files that are common to both
Performs a full
on each pair of like-named text files if they are not identical. If
files differ that are neither text files nor empty, dircmp
prints only the name and type (see
Suppresses output of identical filenames.
Prints the name of the files and directories being compared in two
columns; each column is assigned a width of
n/2. dircmp truncates pathnames that are too
long to fit in a column. The default value of n is 72.
dircmp returns the following values:
an error occurred (differences in directory contents are not
dircmp is conformant with:
AT&T SVID Issue 2;
X/Open CAE Specification, Commands and Utilities, Issue 4, 1992: note that this command is marked as to be
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003