MPE/iX Shell and Utilities Reference Manual, Vol 1

ls(1) MPE/iX Shell and Utilities ls(1)
–i displays inode numbers along with file names.
–L follows symbolic links (only on systems that support symbolic links).
–l displays permissions, links, owner, group, size, time, name; see Long Output Format.
–m displays names in single line, with commas separating names.
–n displays user
ID and group ID numbers.
–o displays only the user ID of owner.
–p puts / after directory names.
–q displays non-printable characters as ?.
–R lists subdirectories recursively.
–r sorts in reverse of usual order; you can combine this with other options that sort the
list.
–s displays size in blocks (after the inode number, but before other information).
–t sorts by time. By default, this option sorts the output by the modification times of
files. You can change this with the –c and –u options.
–u uses the last access time for sorting (–t) or displaying (–l).
–x puts output into sorted columns, with output going across the rows.
–1 forces output to be single column.
Note: When you specify options that are mutually exclusive (for example, –c and –u), the
option that appears last on the command line is used.
Long Output Format
The output from ls –l summarizes all the most important information about the file on one
line. If the specified pathname is a directory, ls displays information on every file in that
directory (one file per line). It precedes this list with a status line that indicates the total num-
ber of file system blocks (512 byte units) occupied by the files in that directory. Here is a
sample of the output along with an explanation.
-rw-rw-rw- 1 root dir 104 Dec 25 19:32 file
The first character identifies the file type:
- regular file
b block special file
c character special file
1-300 Commands and Utilities