access(1)

access1

Determine whether a file can be accessed

Usage

access -mode file

Overview

Exit successfully if file can be accessed with the specified mode. 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 access 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

access accepts the following additional options:

--help

Print help message and exit.

--version

Print version information and exit.

Releases

5 releases since Debian 2.0 (Hamm); the text changed 3 times.

  1. 2.0–2.1
  2. 2.2
  3. 3.0
  4. 3.1

From tetex-bin 2.0.2-30sarge5 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.