KPSEACCESS(1)
π KPSEACCESS π
okay bestie, welcome to the General Commands Manual glow-up of kpseaccess β literally the tiny little tool that answers one (1) question: can I touch this file or nah? π₯
πΈ NAME πΈ
kpseaccess β determine whether a file can be accessed π
β¨ SYNOPSIS β¨
kpseaccess mode file
π¦ DESCRIPTION π¦
So here's the vibe: kpseaccess exits successfully if file can be accessed with the mode you specified. That's it. That's the whole job. Iconic, honestly. π
The mode is an optional dash (-) followed by zero or more letters from rwx, where:
rβ for readablewβ for writablexβ for executable
yes bestie, zero or more β an empty letter list is valid, the dash is optional, we love a flexible queen π
π the plot twist: kpseaccess vs test
The difference between kpseaccess and test is that test looks at the permission bits, while kpseaccess checks using the access(2) system call. π«Ά
and the way that matters?! it makes a difference when file systems have been mounted read-only. like, the bits might say one thing and the actual system call says another, and kpseaccess is the one asking the system directly. no cap. π
π OPTIONS π
kpseaccess accepts the following options:
--helpβ print help message and exit π§--versionβ print version information and exit β
π SEE ALSO π
okay that's the whole page, you ate that π the source of all this wisdom is Kpathsea 6.4.1, dated 1 March 2011 β yes she's an elder but she's still serving β¨ bye bestie, go check those files π πΈ
π¦ where this page comes from
- alpine 3.24: texlive-doc 2026.0-r0 Β· GPL-2.0-or-later AND GPL-3.0-or-later
- fedora 44: texlive-kpathsea 12:svn77861-105.fc44 Β· LGPL-2.1-or-later
- fedora 44: texlive-kpathsea 12:svn77861-111.fc44 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: texlive-kpathsea-doc 2025.221.svn73918-160000.3.1 Β· LGPL-2.1-or-later
- ubuntu resolute: texlive-binaries 2025.20250727.75242+ds-5build1 Β· TeX-Live
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms