ls - list contents of directory — Inferno 1ed
ls - list contents of directory
Description
For each directory argument, ls lists to the standard output the contents of the directory. For each file argument, ls repeats its name and any other information requested. When no argument is given, the current directory is listed.
If a named file does not exist, an error message is sent to the standard error.
Options
There are a number format/content options:
By default, the output is sorted alphabetically by name. Sorting options are as follows:
|
-r
|
Reverse the order of sort.
|
|
-s
|
Sort by size.
|
|
-t
|
Sort by time modified (latest first)
|
|
-u
|
Sort by time of last access
|
The Long Format
The information given with the -l format consists of eight fields:
Notes
The sorting options correspond to the sortkey options of the readdir module. See readdir - read directory and sort files in Chapter 15.
|
stat, fstat, fwstat, wstat - get and put file status in Chapter 8
|
|
Inferno Devices in Chapter 2
|
|
stat, wstat - inquire or change file attributes in Chapter 3
|
infernosupport@lucent.com Copyright © 1996,Lucent Technologies, Inc. All rights reserved.