pathchk
fileLinux/Unix
The pathchk command is one of the most frequently used commands in Linux/Unix-like operating systems. pathchk Check whether file names are valid or portable
Quick Reference
Command Name:
pathchk
Category:
file
Platform:
Linux/Unix
Basic Usage:
pathchk [options] [arguments]
Common Use Cases
Syntax
pathchk [options] name...
Options
| Option | Description |
|---|---|
-p, --portability |
Check for all POSIX systems, not just the current one |
-P |
Check for empty names and leading hyphens in filenames, based on most restrictive POSIX standard |
--help |
Display help information and exit |
--version |
Output version information and exit |
Examples
How to Use These Examples
The examples below show common ways to use the pathchk command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.