man pages section 1: User Commands
只搜寻这本书
查看这本书:
以 PDF 格式下载本书 (6561 KB)

dircmp(1)

Name | Synopsis | Description | Options | Operands | Usage | Environment Variables | Exit Status | Attributes | See Also

Name

    dircmp– directory comparison

Synopsis

    dircmp [-ds] [-w n] dir1 dir2
    

Description

    The dircmp command examines dir1 and dir2 and generates various tabulated information about the contents of the directories. Listings of files that are unique to each directory are generated for all the options. If no option is entered, a list is output indicating whether the file names common to both directories have the same contents.

Options

    The following options are supported:

    -d

    Compares 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).

    -s

    Suppresses messages about identical files.

    -w n

    Changes the width of the output line to n characters. The default width is 72.

Operands

    The following operands are supported:

    dir1
    dir2

    A path name of a directory to be compared.

Usage

    See largefile(5) for the description of the behavior of dircmp when encountering files greater than or equal to 2 Gbyte ( 231 bytes).

Environment Variables

    See environ(5) for descriptions of the following environment variables that affect the execution of dircmp: LC_COLLATE, LC_CTYPE, LC_MESSAGES, and NLSPATH.

Exit Status

    The following exit values are returned:

    0

    Successful completion.

    >0

    An error occurred. (Differences in directory contents are not considered errors.)

Attributes

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPE

    ATTRIBUTE VALUE

    Availability

    SUNWesu

See Also

SunOS 5.10 Last Revised 1 Feb 1995

Name | Synopsis | Description | Options | Operands | Usage | Environment Variables | Exit Status | Attributes | See Also