# kpseaccess(1) - man - phpMan

[KPSEACCESS(1)](https://www.chedong.com/phpMan.php/man/KPSEACCESS/1/markdown)                          General Commands Manual                         [KPSEACCESS(1)](https://www.chedong.com/phpMan.php/man/KPSEACCESS/1/markdown)



## 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)](https://www.chedong.com/phpMan.php/man/access/2/markdown) system call.  This makes a difference  when  file
       systems have been mounted read-only.

## OPTIONS
       **kpseaccess** accepts the following options:

       **--help** Print help message and exit.

### --version
              Print version information and exit.

## SEE ALSO
       [**access**(2)](https://www.chedong.com/phpMan.php/man/access/2/markdown)



Kpathsea 6.3.4/dev                          1 March 2011                               [KPSEACCESS(1)](https://www.chedong.com/phpMan.php/man/KPSEACCESS/1/markdown)
