Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)
Table Of Contents
ls(1) OSS Shell and Utilities Reference Manual
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 file has set-group-ID mode. The user-execute
permission character is s if the file 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 files 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 specified with the ls -W guardian command that names a
/G/volume/subvolume/file_identifier, ls writes the name of the Guardian disk file and its file code
attribute to the standard output file. For each operand that names a /G/volume/subvolume, ls
writes the names of all Guardian disk files that are contained within that subvolume, along with
their associated file 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 file and ls
exits in error. If your current working directory is within /G, the file codes for all of the files in
the current directory are displayed.
When you invoke the ls command with the -W guardian flag and specify a valid Guardian path-
name, the following message is displayed:
%s:,<Guardian pathname in form/G/volume/subvolume>
For all files contained within the specified Guardian pathname (/G/volume/subvolume) and for all
specified disk filenames, the following message is displayed:
%s %d,<file_identifier>, <filecode>
EXAMPLES
1. To list all files in the current directory, enter:
ls -a
This command lists all files, including . (dot), .. (dot dot), and other files whose names
begin with a dot.
2. To display detailed information, enter:
ls -l chap1 .profile
This command displays a long listing with detailed information about the files chap1 and
.profile.
3. To display detailed information about a directory, enter:
ls -d -l . manual manual/chap1
This command displays a long listing for the directories . (dot) and manual and for the
file manual/chap1. Without the -d flag, this command lists the files in . (dot) and
manual instead of providing detailed information about the directories themselves.
5−80 Hewlett-Packard Company 527188-003