1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 02:55:24 +02:00
tldr/pages/common/pathchk.md
Managor 79b8d3e3b8
*: replace … with individual dots and refresh pages (#16368)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-05-04 10:20:26 +03:00

574 B

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:

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 {{[-p -P|--portability]}} {{path1 path2 ...}}

  • Only check for empty pathnames or leading dashes (-):

pathchk -P {{path1 path2 ...}}