table of contents
- bookworm 2022.20220321.62855-5.1+deb12u2
- testing 2024.20240313.70630+ds-6
- unstable 2024.20240313.70630+ds-6
- experimental 2025.20250727.75242+ds-3
| KPSEACCESS(1) | General Commands Manual | KPSEACCESS(1) |
NAME¶
kpseaccess - determine whether a file can be accessed
SYNOPSIS¶
kpseaccess mode file
DESCRIPTION¶
Exit successfully if file can be accessed with the specified mode. The mode is an optional dash (`-') followed by zero or more letters of rwx, where r is for readable, w is for writable, and x is for executable.
The difference between kpseaccess and test is that the latter looks at the permission bits, while the former checks using the access(2) system call. This makes a difference when file systems have been mounted read-only.
OPTIONS¶
kpseaccess accepts the following options:
SEE ALSO¶
| 1 March 2011 | Kpathsea 6.3.4 |