
l
ls(1) | ls(1) |
lSymbolic link
nNetwork special ®le
pFifo (also called a "named pipe") special ®le s Socket
- Ordinary ®le
The next 9 characters are interpreted as three sets of three characters each which identify access and execution permissions for the owner, group, and others categories, as described in chmod(1). The - indicates the permission is not granted. The various permissions can be put together in any combination, except that the x, s, S, t, and T characters are mutually exclusive, as implied below.
Read by owner | |
Write by owner | |
Execute (or search directory) by owner; do not set user ID on execution | |
Execute/search by owner; set user ID on execution | |
No execute/search by owner; set user ID on execution | |
Read by group | |
Write by group | |
Execute/search by group; do not set group ID on execution | |
Execute/search by group; set group ID on execution | |
No execute/search by group; set group ID on execution | |
Read by others | |
Write by others | |
Execute/search by others; do not set sticky bit on execution | |
Execute/search by others; set sticky bit on execution | |
No execute/search by others; set sticky bit on execution |
The mode characters are interpreted as follows:
-Deny all permissions in the corresponding position.
rGrant read permission to the corresponding user class.
wGrant write permission to the corresponding user class.
xGrant execute (or search in directory) permission to the corresponding user class.
sGrant execute (search) permission to the corresponding user class. Execute the ®le as if by the owner (set user ID, SUID) or group (set group ID, SGID), as indicated by position.
SDeny execute (search) permission to the corresponding user class. Execute the ®le as if by the owner (set user ID, SUID) or group (set group ID, SGID), as indicated by position.
tGrant execute (search) permission to others. The "sticky" (save text image) bit is set (see the description of S_ISVTX in chmod(2)).
TDeny execute (search directory) permission to others. The "sticky" (save text image) bit is set.
When an option is speci®ed that results in a listing of directory and/or ®le sizes in bytes or blocks (such as the
Access Control Lists (ACLs)
If a ®le has optional ACL entries, the
EXTERNAL INFLUENCES
Environment Variables
If the COLUMNS variable is set, ls uses the width provided in determining positioning of columnar output.
LANG determines the locale to use for the locale categories when both LC_ALL and the corresponding environment variable (beginning with LC_) do not specify a locale. If LANG is not set or is null, it defaults to C (see lang(5)).
LC_COLLATE determines the order in which the output is sorted.
Section 1−482 | − 3 − |