3172
|
1 .TH ACCESS 1 "4 January 1998" "Kpathsea @VERSION@" |
|
2 .\"===================================================================== |
|
3 .if n .ds MP MetaPost |
|
4 .if t .ds MP MetaPost |
|
5 .if n .ds MF Metafont |
|
6 .if t .ds MF M\s-2ETAFONT\s0 |
|
7 .if t .ds TX \fRT\\h'-0.1667m'\\v'0.20v'E\\v'-0.20v'\\h'-0.125m'X\fP |
|
8 .if n .ds TX TeX |
|
9 .ie t .ds OX \fIT\v'+0.25m'E\v'-0.25m'X\fP\" for troff |
|
10 .el .ds OX TeX\" for nroff |
|
11 .\" the same but obliqued |
|
12 .\" BX definition must follow TX so BX can use TX |
|
13 .if t .ds BX \fRB\s-2IB\s0\fP\*(TX |
|
14 .if n .ds BX BibTeX |
|
15 .\" LX definition must follow TX so LX can use TX |
|
16 .if t .ds LX \fRL\\h'-0.36m'\\v'-0.15v'\s-2A\s0\\h'-0.15m'\\v'0.15v'\fP\*(TX |
|
17 .if n .ds LX LaTeX |
|
18 .\"===================================================================== |
|
19 .SH NAME |
|
20 access \- determine whether a file can be accessed |
|
21 .SH SYNOPSIS |
|
22 .B access |
|
23 .I -mode |
|
24 .I file |
|
25 .\"===================================================================== |
|
26 .SH DESCRIPTION |
|
27 Exit successfully if |
|
28 .I file |
|
29 can be accessed with the specified mode. |
|
30 .I mode |
|
31 is one or more letters of |
|
32 .IR rwx , |
|
33 where |
|
34 .I r |
|
35 is for readable, |
|
36 .I w |
|
37 is for writable, and |
|
38 .I x |
|
39 is for executable. |
|
40 .PP |
|
41 The difference between |
|
42 .B access |
|
43 and |
|
44 .B test |
|
45 is that the latter looks at the permission bits, while the former |
|
46 checks using the |
|
47 .BR access (2) |
|
48 system call. This makes a difference when file systems have been |
|
49 mounted read-only. |
|
50 .\"===================================================================== |
|
51 .SH OPTIONS |
|
52 .B access |
|
53 accepts the following additional options: |
|
54 .TP |
|
55 .B --help |
|
56 .rb |
|
57 Print help message and exit. |
|
58 .TP |
|
59 .B --version |
|
60 .rb |
|
61 Print version information and exit. |
|
62 .\"===================================================================== |
|
63 .SH "SEE ALSO" |
|
64 .BR access (2) |