ls [-dlpqrstu] files...
-d
|
If argument is a directory, list it, not its contents.
|
-l
|
List in long format, giving mode (see below), file system type (e.g., for devices, the # code letter that names it; see Inferno Devices), the instance or subdevice number, owner, group, size in bytes, and time of last modification for each file.
|
-p
|
Print only the final path element of each file name.
|
-q
|
Include the qid (see stat) of each file. By default, the output is sorted alphabetically by name; however, there are a number of sorting options.
|
-r
|
Reverse the order of sort.
|
-s
|
Sort by size.
|
-t
|
Sort by time modified (latest first) instead of by name.
|
-u
|
Sort by time of last access.
|
The Long Format
The information given under the -l format consists of eight fields:
Notes
The sorting options correspond to the sortkey options of the readdir module. See readdir.
stat
|
for general discussion of file attributes
|
Inferno Devices
|
for discussion of device type
|
stat
|
for definition of modification time
|