kpseaccess - determine whether a file can be accessed
2. SYNOPSIS ▲
kpseaccess [-rwx] file
3. DESCRIPTION ▲
Exit successfully if file can be accessed with the specified mode. The mode is one or more letters of rwx , where r is for readable, w is for writable, and x is for executable.
The difference between
test is that the latter looks at the permission bits, while the former checks using the
R access (2) system call. This makes a difference when file systems have been mounted read-only.
4. OPTIONS ▲
kpseaccess accepts the following additional options:
.rb Print help message and exit.
.rb Print version information and exit.
5. SEE ALSO ▲
R access (2)