2025-03-14 21:59:59 -06:00
|
|
|
# pathchk
|
|
|
|
|
|
|
|
|
|
> Check the validity and portability of pathnames.
|
|
|
|
|
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/pathchk-invocation.html>.
|
|
|
|
|
|
|
|
|
|
- Check pathnames for validity in the current system:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pathchk {{path1 path2 ...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Check pathnames for validity on a wider range of POSIX compliant systems:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pathchk -p {{path1 path2 ...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Check pathnames for validity on all POSIX compliant systems:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pathchk {{[-p -P|--portability]}} {{path1 path2 ...}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Only check for empty pathnames or leading dashes (-):
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`pathchk -P {{path1 path2 ...}}`
|