Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
ls(1) OSS Shell and Utilities Reference Manual
NAME
ls - Lists and generates statistics for files
SYNOPSIS
ls [ -W NOG ][-W NOE ][-abcCdfFgilLmnopqrRstux1
][file | directory] ...
ls -W guardian [/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 flag overrides the -o flag.
-p Puts a slash after each filename if that file is a directory.
-q Displays nonprintable characters in filenames as a ? (question mark) character if output
is sent to a terminal (the default destination).
-r Reverses the order of the sort, giving reverse collation or the oldest first, as appropriate.
-R Lists all subdirectories recursively.
5−78 Hewlett-Packard Company 527188-007