PATHCHK(1)
π pathchk(1) β the "is this filename even valid tho" check π¦
okay bestie, so this is pathchk, a lil tool from the General Commands Manual section of your friendly neighborhood manual pages, and it's about to be your new hyperfixation, fr fr. π
β¨ NAME β¨
pathchk β Check whether file names are valid or portable π
πΈ SYNOPSIS πΈ
pathchk [OPTION]... NAME...
π DESCRIPTION π
Check whether file names are valid or portable π
that's it. that's the whole job. you hand it some names, it vibe-checks them and tells you if they'd survive out there on other systems. no cap. β¨
π OPTIONS π
-pβ check for most POSIX systems π«Ά-Pβ check for empty names and leading"-"π (yes, the sneaky ones that start with a dash, we see them)--portabilityβ check for all POSIX systems (equivalent to-p -P) π₯ both modes, all at once, main character energy-h,--helpβ Print help π-V,--versionβ Print version β
π VERSION π
v(uutils coreutils) 0.12.0 β yes she has a version and yes she serves
π¦ EXAMPLES π¦
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 ...
The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail. π (it's giving "work in progress" and we respect the honesty)
π a lil sign-off π
this page is dated 2026-09-25 and lives under the name pathchk(1), so if you're citing her in your little blog post, that's the receipt bestie π§ stay valid, stay portable, and remember: check your pathnames before you ship them β¨ππ
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms