Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
User Commands (k - l) ls(1)
-s Gives space used in 512-byte units (including indirect blocks) for each entry.
-t Sorts by time of last modification (latest first) instead of by name, before sorting the
operands by the collating sequence.
-u Uses the time of the last access instead of the time of the last modification for sorting
(when used with the -t flag) or for displaying (when used with the -l flag). The -u flag
has no effect unless used with either the -t or -l flag or both.
-x Sorts output horizontally in a multicolumn format.
-1 Forces an output format of one entry per line; this is the default format when output is
not directed to a terminal.
When the following mutually exclusive flags are specified, the last flag specified on the com-
mand line takes effect:
• -C and -l (ell)
• -C and -1 (one)
• -m and -l (ell)
• -x and -l (ell)
• -c and -u
HP Extensions
-W guardian [/G[/volume[/subvolume[/file_identifier]]]] ...
Specifies a Guardian pathname. The -W guardian flag cannot be specified with any of
the other flags for the ls command. The specified pathname must either identify a disk
file directly or point to a Guardian subvolume. If a disk file is specified in the format
/G/volume/subvolume/file_identifier, its file code is displayed. If the format used is
/G/volume/subvolume, the file codes for all of the disk files within the specified subvo-
lume are displayed.
-W NOG
Specifies that the /G directory should be omitted when the initial directory is root and
the recursive flag (-R) is used. This flag is ignored when the initial directory is not /,
/E,or/E/system or when recursion does not occur.
-W NOE Specifies that the /E directory should be omitted when the initial directory is root and
the recursive flag (-R) is used. This flag is ignored when the initial directory is not root
or when recursion does not occur.
Specify both the -W NOG and -W NOE flags to omit both the /G and /E directories.
DESCRIPTION
The ls command writes to the standard output file the contents of each specified directory or the
name of each specified file, along with any other information you ask for with flags. If you do
not specify a file or a directory, ls displays the contents of the current directory. Objects whose
names begin with a period (.) are normally not displayed except with the -a flag.
By default, the ls command displays all information in collated order by filename. The collating
sequence is determined by the LC_COLLATE environment variable.
527188-007 Hewlett-Packard Company 5−79