Open System Services Shell and Utilities Reference Manual (G06.27+, H06.04+)
User Commands (k - l) ls(1)
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
makekil 101
mykill 100
testc 101
test 100
8. To recursively list all subdirectories in the OSS file 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 files or between local and
remote files. You can use the -W NOG and -W NOE flags or the UTILSGE environment vari-
able to exclude objects in the Guardian file system or objects accessible through the Expand pro-
duct.
RELATED INFORMATION
Commands: chmod(1), find(1), ln(1), stty(1).
Files: locale(4).
527188-004 Hewlett-Packard Company 5−81