1. NAME▲
kpseaccess - determine whether a file can be accessed
2. SYNOPSIS ▲
kpseaccess [-rwx]file
3. DESCRIPTION ▲
Exit successfully if filecan be accessed with the specified mode. The mode is one or more letters of rwx , where ris for readable, wis for writable, and xis for executable.
The difference between
kpseaccess and
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:
--help
.rb Print help message and exit.
--version
.rb Print version information and exit.
5. SEE ALSO ▲
R access (2)