MPE/iX Shell and Utilities Reference Manual, Vol 1

ls(1) MPE/iX Shell and Utilities ls(1)
NAME
ls — list file and directory names and attributes
SYNOPSIS
ls [–AabCcdFfgiLlmnopqRrstux1][pathname ...]
DESCRIPTION
Note: The MPE/iX implementation of this utility does not function exactly as this man page
describes. For details, see the MPE/iX NOTES section at the end of this man page.
ls lists files and directories. If the pathname is a file, ls displays information on the file
according to the requested options. If it is a directory, ls displays information on the files and
subdirectories therein. You may obtain information on a directory itself using the –d option.
If you do not specify any options, ls displays only the file name(s). When ls sends output to
a pipe or a file, it writes one name per line; when it sends output to the terminal, it uses the –C
(multi-column) format.
Options
ls accepts the following options:
–A lists all entries including those starting with periods (.); but excluding any . or ..
entries.
–a lists all entries including those starting with a period (.).
–b displays non-printable characters in octal, as \ooo.
–C puts output into columns, sorted vertically; this is the default output format to the ter-
minal.
–c uses the time of the last modification of the file’s attributes for sorting (–t) or dis-
playing (–l).
–d does not display the contents of named directories, but information on the directories
themselves.
–F puts a / after each directory name, a * after every executable file, a | after every
FIFO file, a @ after every symbolic link, and a = after every socket.
–f enables the -a option and disables the -C option. This means that for each argument
that is a directory, all directory entries are listed in the same order they are retrieved
from the system.
–g displays only the group ID numbers.
Commands and Utilities 1-299