Technical data
Introducing the File System
6-5
LS(1) LS(1)
NAME
ls - list contents of directories
SYNOPSIS
ls [-abcdfgilmnopqrstuxACFHLRl][ names ]
DESCRIPTION
For each directory argument, ls lists the contents of the directory ...
Options
There are numerous options:
-a List all entries; usually entries whose names begin with a period (.) are not listed.
-b Force printing of non-graphic characters to be in the octal \ddd notation.
.
.
.
EXAMPLES
The following command prints a long listing of all the files (including the file sizes) in the
current working directory. The file most recently modified (the youngest) is listed first, then
the next youngest file, and so forth, to the oldest. Files beginning with a . are also printed.
ls -alst
WARNINGS
The option setting based on whether the output is a teletype is undesirable as ls -s is much
different than ls -s | lpr. On the other hand, not using this setting would make old shell scripts
that used ls almost inevitably fail.










