1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/pathchk.md
2021-03-30 11:13:36 -03:00

573 B

pathchk

Check the validity and portability of one or more pathnames. More information: https://www.gnu.org/software/coreutils/manual/html_node/pathchk-invocation.html.

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