Checks path names.
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.
Item | Description |
---|---|
-p | Performs path name checks based on POSIX portability standards.
An error message is sent for each path name that meets the following
criteria:
|
-P | Checks the pathname operand and returns
an error message if the pathname operand meets the following
criteria:
|
This command returns the following exit values:
Item | Description |
---|---|
0 | All pathname operands passed all of the checks. |
>0 | An error occurred. |
pathchk /home/bob/work/tempfiles
pathchk -p /home/bob/temp
Item | Description |
---|---|
/usr/bin/pathchk | Contains the pathchk command. |