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 pathname parameter based on the underlying file system. 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 the system.
- The byte length of a component is longer than allowed by the system.
- Search permission is not allowed for a component.
- A character in any component is not valid in its containing directory.
It is not an error if one or more components of a path name do not exist. If a file that matches the path name specified by the pathname parameter can be created and it must not violate any of the above criteria.
extensive portability checks are run when the
|| Checks the path name based on POSIX portability standards.
An error message is sent for each path name that meets the following
|| Checks the pathname operand
and returns an error message if the pathname operand
meets the following criteria:
This command returns the following exit values:
||All pathname operands passed all of the checks.|
||An error occurred.|
- To check the validity and portability of the /home/bob/work/tempfiles path
name on your system, enter:
- To check the validity and portability of the /home/bob/temp path
name for POSIX standards, enter:
pathchk -p /home/bob/temp
|/usr/bin/pathchk||Contains the pathchk command.|