[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 4

pathchk Command

Purpose

Checks path names.

Syntax

pathchk-p ] PathName ...

Description

The pathchk command checks that one or more path names are valid and portable. By default, the pathchk command checks each component of each path name specified by the path name parameter based on the underlying file system. An error message is sent for each path name that meets the following criteria:

It is not considered an error if one or more components of a path name do not exist, as long as a file matching the path name specified by the PathName parameter could be created that does not violate any of the above criteria.

More extensive portability checks are performed when the -p flag is specified.

Flags

-p Performs path name checks based on POSIX portability standards. An error message is sent for each path name that meets the following criteria:
  • The byte length of the full path name is longer than allowed by POSIX standards.
  • The byte length of a component is longer than allowed by POSIX standards.
  • A character in any component is not in the portable file-name character set.

Exit Status

This command returns the following exit values:

0 All PathName operands passed all of the checks.
>0 An error occurred.

Examples

  1. To check the validity and portability of the /home/bob/work/tempfiles path name on your system, enter:
    pathchk /home/bob/work/tempfiles
  2. To check the validity and portability of the /home/bob/temp path name for POSIX standards, enter:
    pathchk -p /home/bob/temp

Files

/usr/bin/pathchk Contains the pathchk command.

Related Information

The mhpath command.

The File Systems Overview for System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.


[ Previous | Next | Contents | Glossary | Home | Search ]