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

User Commands (k - l) ls(1)
Use on Guardian Objects
For each pathname specified with the ls -W guardian command that names a
/G/v olume/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/v olume/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 ag 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>
For each pathname specified with the ls -W gfinfo command that names a
/G/v olume/subvolume/file_identifier, ls writes the name of the Guardian disk file and its file type,
file code, last open time, modification time, create time, permission, format, primary extents,
secondary extents, and Safeguard status attributes 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 con-
tained within that subvolume, along with the identical information described above for an indivi-
dual disk file for all of the disk files within the subvolume.
If you invoke the ls -W gfinfo command without specifying a pathname and your current work-
ing 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 type, file code, last open time,
modification time, create time, permission, format, primary extents, secondary extents, and Safe-
guard status attributes for all of the files in the current directory are displayed.
For all files contained within the specified Guardian pathname (/G/volume/subvolume) and for all
specified disk filenames, the following message is displayed:
%s %c %d %s %s %s %s %d %d %d %s <file_identifier>, <filetype>,
<filecode> , <lastopen_time>, <modification_time>, <create_time>,
<file_permission>, <file_format> , <primary_extents>,
<secondary_extents>, <safeguard_status>
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.
527188-021 Hewlett-Packard Company 583