Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
l
ls(1) ls(1)
substituted for the hour and minute of the modification time. If the file is a special file, the size
field contains the major and minor device numbers rather than a size. If the file is a symbolic
link, the filename is printed, followed by -> and the pathname of the referenced file.
-m Stream output format.
-n The same as -l, (ell) except that the owner’s UID and group’s GID numbers are printed, rather
than the associated character strings.
-o The same as -l, (ell) except that only the owner is printed (group is omitted). (If both -l (ell)
and -o are specified, the group is not printed).
-p Put a slash (/) after each file name if that file is a directory.
-q List nonprinting characters in file names as the character (?).
-r Reverse the order of sort to get reverse (descending) collation or oldest first, as appropriate.
-s List size in blocks, including indirect blocks, for each entry. The first entry listed is the total
number of blocks in the directory. When used in multicolumn output, the number of blocks pre-
cedes the file name in each column. The number of indirect blocks in a file is filesystem depen-
dent.
-t Sort by time modified (latest first) before sorting alphabetically.
-u Use time of last access instead of last modification for sorting (-t
option) or printing (-l (ell)
option).
-x List multicolumn output with entries sorted across rather than down the page.
-A The same as -a, except that the current directory . and parent directory ..
are not listed. For
a user with appropriate privileges, this flag defaults to on, and is turned off by
-A
.
-C List multicolumn output with entries sorted down the columns.
-F After each file name, put one of:
• A slash (/) if the file is a directory or a symbolic link to a directory.
• An asterisk (*) if the file is executable;
• An at-sign (@) if the file is a symbolic link to a file;
• A vertical bar (|) if the file is a fifo.
-L If the argument is a symbolic link, list the file or directory to which the link refers rather than
the link itself.
-R Recursively list subdirectories encountered.
-1 (one) List the file names in single column format regardless of the output device. This forces sin-
gle column format to the user’s terminal.
Specifying more than one of the options in the following mutually exclusive pairs is not considered an error:
-C and -l (ell), -m and -l (ell), -x and -l (ell), -C and -1 (one), and -c and -u.
ls is known by several shorthand-version names for the various formats:
l is equivalent to ls -m
ll
is equivalent to ls -l (ell)
lsf is equivalent to ls -F
lsr
is equivalent to ls -R
lsx
is equivalent to ls -x
The shorthand notations are implemented as links to ls. Option arguments to the shorthand versions
behave exactly as if the long form above had been used with the additional arguments.
Mode Bits Interpretation (-l option)
The mode printed in listings produced by the -l (ell) option consists of 10 characters, for example,
-rwxr-xr-x.
The first character indicates the entry type:
b Block special file
c Character special file
d Directory
HP-UX Release 11i: December 2000 − 2 − Section 1−−481
___
___