tldr/pages/common/pathchk.md

21 lines
529 B
Markdown
Raw Normal View History

2019-01-31 15:03:03 +00:00
# pathchk
> Check the validity and portability of pathnames.
> More information: <https://www.gnu.org/software/coreutils/pathchk>.
2019-01-31 15:03:03 +00:00
- Check pathnames for validity in the current system:
2019-01-31 15:03:03 +00:00
`pathchk {{path1 path2 …}}`
- Check pathnames for validity on a wider range of POSIX compliant systems:
`pathchk -p {{path1 path2 …}}`
- Check pathnames for validity on all POSIX compliant systems:
`pathchk --portability {{path1 path2 …}}`
- Only check for empty pathnames or leading dashes (-):
`pathchk -P {{path1 path2 …}}`