tldr/pages/common/pathchk.md
Jon LaBelle f3d7ddd622 pathchk: move to pages/common
`pathchk` is not exclusive to the Linux platforms; it's distributed with most
(if not all) BSD platforms, including...

- [FreeBSD](https://www.freebsd.org/cgi/man.cgi?query=pathchk&sektion=1)
- [macOS](https://opensource.apple.com/source/file_cmds/file_cmds-230/pathchk/pathchk.1.auto.html)
2019-02-18 13:16:25 +05:30

470 B

pathchk

Check the validity and portability of one or more pathnames.

  • Check pathames for validity in the current system:

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 …}}