Open System Services Shell and Utilities Reference Manual (G06.25+, H06.03+)

User Commands (k - l) ls(1)
4. To list the les in the current directory in order of modication time, enter:
ls -l -t
This command displays a long listing of the les that were modied most recently, fol-
lowed by the older les.
5. To list one or more individual les using the -W guardian ag, 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 les in a subvolume using the -W guardian ag, 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 specic le in one subvolume and all the les in another subvolume using the
-W guardian ag, 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
makekil 101
mykill 100
testc 101
test 100
8. To recursively list all subdirectories in the OSS le system on the local node, enter:
ls -W NOG -W NOE -R /
NOTES
Because /G and /E both appear in your local root directory, you should be very careful when
using OSS shell commands on or from the root directory. OSS shell commands that perform
recursive actions make no distinction between Guardian and OSS les or between local and
remote les. You can use the -W NOG and -W NOE ags or the UTILSGE environment vari-
able to exclude objects in the Guardian le system or objects accessible through the Expand pro-
duct.
RELATED INFORMATION
Commands: chmod(1), nd(1), ln(1), stty(1).
Files: locale(4).
527188-003 Hewlett-Packard Company 581