Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

User Commands (k - l) ls(1)
Modes
The mode displayed with the -l ag is interpreted by the rst character, as follows:
b Block special le
c Character special le
d Directory
l Symbolic link
p First-in-rst-out (FIFO) special le
s AF_UNIX local socket
- Ordinary le
Permissions
The second through tenth characters in the permissions code are divided into three sets of three
characters each. The rst set of three characters shows the owners permission. The next set of
three characters shows the permission of the other users in the group. The last set of three char-
acters shows the permission of everyone else. The three characters in each set show read, write
and execute permission of the le. Execute permission of a directory lets you search a directory
for a specied le.
Permissions are indicated as follows:
r Read
w Write
x Execute or search (directories)
- No access
The group-execute permission character is s if the le has set-group-ID mode. The user-execute
permission character is s if the le has set-user-ID mode. See the chmod command for the mean-
ing of this mode. The indications of set-ID bit of the mode are capitalized (S) if the correspond-
ing execute permission is not set.
When the sizes of the les in a directory are listed, the ls command displays a total count in 512-
byte units, including indirect blocks.
Use on Guardian Objects
For each pathname specied with the ls -W guardian command that names a
/G/volume/subvolume/le_identier, ls writes the name of the Guardian disk le and its le code
attribute to the standard output le. For each operand that names a /G/volume/subvolume, ls
writes the names of all Guardian disk les that are contained within that subvolume, along with
their associated le codes.
If you invoke the ls -W guardian command without specifying a pathname and your current
working directory is not within /G, a warning message is written to the standard error le and ls
exits in error. If your current working directory is within /G, the le codes for all of the les in
the current directory are displayed.
When you invoke the ls command with the -W guardian ag and specify a valid Guardian path-
name, the following message is displayed:
%s:,<Guardian pathname in form/G/volume/subvolume>
527188-007 Hewlett-Packard Company 581