NAME
ls, lc – list contents of directory |
SYNOPSIS
ls [ –dlmnpqrstuFQT ] [ file ... ]
lc [ –dlmnqrstuQT ] [ file ... ] |
DESCRIPTION
For each directory argument, ls lists 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. By default, the output is sorted alphabetically by name.
Lc is the same as ls, but sets the –p and –F options and pipes the output through mc(1).
There are a number of options:
The mode printed under the –l option contains 11 characters, interpreted
as follows: the first character is The next letter is l if the file is exclusive access (one writer or reader at a time).
The last 9 characters are interpreted as three sets of three bits
each. The first set refers to owner permissions; the next to permissions
to others in the same user–group; and the last to all others. Within
each set the three characters indicate permission respectively
to read, to write, or to execute the file as a program.
For a directory, `execute' permission is interpreted to mean permission
to search the directory for a specified file. The permissions
are indicated as follows: |
SOURCE
/sys/src/cmd/ls.c /rc/bin/lc |
SEE ALSO
stat(2), mc(1) |