3 ls, lc \- list contents of directory
17 For each directory argument,
19 lists the contents of the directory;
20 for each file argument,
22 repeats its name and any other information requested.
23 When no argument is given, the current directory is listed.
24 By default, the output is sorted alphabetically by name.
33 options and pipes the output through
36 There are a number of options:
39 If argument is a directory, list it, not
43 List in long format, giving mode (see below), file system type
44 (e.g., for devices, the
46 code letter that names it; see
48 the instance or subdevice number, owner, group,
49 size in bytes, and time of last modification
53 List the name of the user who most recently modified the file.
56 Don't sort the listing.
59 Print only the final path element of each file name.
66 of each file; the printed fields are in the order
67 path, version, and type.
70 Reverse the order of sort.
73 Give size in Kbytes for each entry.
76 Sort by time modified (latest first) instead of
82 sort by time of last access;
85 print time of last access.
90 after all directory names
93 after all executable files.
98 before each file if it has the temporary flag set, and
103 By default, printed file names are quoted if they contain characters special to
107 flag disables this behavior.
109 The mode printed under the
111 option contains 11 characters,
114 the first character is
117 if the entry is a directory;
120 if the entry is an append-only file;
123 if the entry is a plain file.
128 if the file is exclusive access (one writer or reader at a time).
130 The last 9 characters are interpreted
131 as three sets of three bits each.
132 The first set refers to owner permissions;
133 the next to permissions to others in the same user-group;
134 and the last to all others.
135 Within each set the three characters indicate
136 permission respectively to read, to write, or to
137 execute the file as a program.
138 For a directory, `execute' permission is interpreted
139 to mean permission to search the directory
140 for a specified file.
141 The permissions are indicated as follows:
144 if the file is readable;
148 if the file is writable;
151 if the file is executable;
154 if none of the above permissions is granted.