Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
ls(1) OSS Shell and Utilities Reference Manual
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.
4. To list the files in the current directory in order of modification time, enter:
ls -l -t
This command displays a long listing of the files that were modified most recently, fol-
lowed by the older files.
5. To list one or more individual files using the -W guardian flag, enter, for example:
ls -W guardian /G/osf/kill/mykill /G/osf/kill/test
The following is displayed:
/G/osf/kill/mykill 100
/G/osf/kill/test 100
6. To list all the files in a subvolume using the -W guardian flag, enter, for example:
cd /G/osf/kill
ls -W guardian
The following is displayed:
bindkil 101
makekil 101
mykill 100
test 100
testc 101
7. To list a specific file in one subvolume and all the files in another subvolume using the
-W guardian flag, enter, for example:
ls -W guardian /G/osf/rose/rosec /G/osf/kill
The following is displayed:
/G/osf/rose/rosec 101
/G/osf/kill:
bindkil 101
5−82 Hewlett-Packard Company 527188-007