1dircmp(1) User Commands dircmp(1)
2
3
4
6 dircmp - directory comparison
7
9 dircmp [-ds] [-w n] dir1 dir2
10
11
13 The dircmp command examines dir1 and dir2 and generates various tabu‐
14 lated information about the contents of the directories. Listings of
15 files that are unique to each directory are generated for all the
16 options. If no option is entered, a list is output indicating whether
17 the file names common to both directories have the same contents.
18
20 The following options are supported:
21
22 -d Compares the contents of files with the same name in both
23 directories and output a list telling what must be changed in
24 the two files to bring them into agreement. The list format is
25 described in diff(1).
26
27
28 -s Suppresses messages about identical files.
29
30
31 -w n Changes the width of the output line to n characters. The
32 default width is 72.
33
34
36 The following operands are supported:
37
38 dir1 A path name of a directory to be compared.
39 dir2
40
42 See largefile(5) for the description of the behavior of dircmp when
43 encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
44
46 See environ(5) for descriptions of the following environment variables
47 that affect the execution of dircmp: LC_COLLATE, LC_CTYPE, LC_MESSAGES,
48 and NLSPATH.
49
51 The following exit values are returned:
52
53 0 Successful completion.
54
55
56 >0 An error occurred. (Differences in directory contents are not
57 considered errors.)
58
59
61 See attributes(5) for descriptions of the following attributes:
62
63
64
65
66 ┌─────────────────────────────┬─────────────────────────────┐
67 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
68 ├─────────────────────────────┼─────────────────────────────┤
69 │Availability │SUNWesu │
70 └─────────────────────────────┴─────────────────────────────┘
71
73 cmp(1), diff(1), attributes(5), environ(5), largefile(5)
74
75
76
77SunOS 5.11 1 Feb 1995 dircmp(1)