*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: dircmp | Section: 1 | Source: Digital UNIX | File: dircmp.1.gz
dircmp(1) General Commands Manual dircmp(1) NAME dircmp - Compares two directories SYNOPSIS dircmp [-d] [-s] directory1 directory2 The dircmp command reads directory1 and directory2, compares their con- tents, and writes the results to standard output. STANDARDS Interfaces documented on this reference page conform to industry stan- dards as follows: dircmp: XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about in- dustry standards and associated tags. OPTIONS Displays for each common file name the differing contents of the two files, if any. The display format is the same as that of the diff com- mand. Does not list the names of identical files. OPERANDS The path name of a directory to be compared. DESCRIPTION First, dircmp compares the file names in each directory. When the same file name appears in both, dircmp compares the contents of the two files. In the output, dircmp lists the files unique to each directory. It then lists the files with identical names but different contents. If entered without a option, dircmp also lists files that have both iden- tical names and identical contents. NOTES [DIGITAL] In many cases, diff -r, rather than dircmp, is preferred. The dircmp command is marked to be withdrawn from the XPG4-UNIX stan- dard. The diff -r command should be used instead. EXAMPLES To summarize the differences between the files in two directories, en- ter: dircmp proj.ver1 proj.ver2 This displays a summary of the differences between the directo- ries proj.ver1 and proj.ver2. The summary lists separately the files found only in one directory or the other, and those found in both. If the file is found in both directories, the file is listed. If the files are identical, dircmp displays identical; otherwise, dircmp displays different. To show the details of the differences between files, enter: dircmp -d -s proj.ver1 proj.ver2 The -s option suppresses information about identical files. The -d option displays a diff listing for each of the differing files found in both directories. SEE ALSO Commands: cmp(1), diff(1) Standards: standards(5) dircmp(1)

Navigation Options