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

User Commands (k - l) ls(1)
NAME
ls - Lists and generates statistics for files
SYNOPSIS
ls [ -W NOG ][-W NOE ][-abcCdfFgilLmnopPqrRstux1][file | directory] ...
ls -W guardian [/G/[volume[/subvolume[/file_identifier]]]] ...
ls -W gfinfo [/G/[volume[/subvolume[/file_identifier ]]]] ...
FLAGS
-a Lists all entries in the directory, including the entries that begin with a . (dot).
-b Displays nonprintable characters in octal notation. For example, a file named aˆAb is
displayed as a\0016.
-c Uses the time of last property change, mode change, and so on for sorting (when used
with the -t flag) or for displaying (when used with the -l, -g, -n, -o, or -u flags).
-C Sorts output vertically in a multicolumn format. This is the default action when output
is sent to a terminal.
-d Displays only the information for the directory that is named, rather than for its con-
tents. This is useful with the -l flag to get the status of a directory.
-f This flag turns off the -l, -t, -s, and -r flags and turns on the -a flag; the flag uses the
order in which entries appear in the directory.
-F Puts a / (slash) after each filename if the file is a directory, an * (asterisk) after each
filename if the file can be executed, an @ (at sign) for a symbolic link, and a | (vertical
bar) for a FIFO file.
-g Displays the same information as the -l flag, except for the owner, which is not
displayed.
-i Displays the inode number in the first column of the report for each file.
-l Displays the mode, number of links, owner, group, size, time of last modification for
each file, and pathname. If the file is a special file, the size field instead contains the
major and minor device numbers. If the file is a symbolic link, the pathname of the
linked-to file is also printed preceded by ->. The attributes of the symbolic link are
displayed. The -n flag overrides the -l flag.
-L Lists the file or directory the link references rather than the link itself, if the argument
is a symbolic link. The -n flag overrides the -l flag.
-m Uses stream output format (a comma-separated series).
-n Displays the same information as the -l flag, except that it displays the user and the
group IDs instead of the usernames and group names.
-o Displays the same information as the -l flag, except for the group, which is not
displayed. The -n ag overrides the -o flag.
-p Puts a slash after each filename if that file is a directory.
-P (J06.11 or later J-series RVUs or H06.22 or later H-series RVUs only) Must be used
with the -l, -n, -g,or-o
ag. If the file has at least one file privilege set, a # appears
after the permissions of the file. If the file also has optional access control list (ACL)
entries, the + (plus sign) is not shown.
527188-021 Hewlett-Packard Company 579