.TH lc "" "" Command
.PC "List directory's contents in columnar format"
\fBlc [ \-1abcdfp ] [ \fIdirectory ...\fB]\fR
.PP
.HS
.SH Options:
.IC "\fB\-1\fR (one, not el)"
List files one per line instead of in columns
.IC \fB\-a\fR
List all files in directory (including `.' and `..')
.IC \fB\-b\fR
List block-special files only
.IC \fB\-c\fR
List character-special files only
.IC \fB\-d\fR
List directories only
.IC \fB\-f\fR
List regular files only
.IC \fB\-p\fR
List pipe files only
.Pp
Options can be combined.
If no \fIdirectory\fR is specified, the current directory is used.
.HE
.B lc
lists the names of the files in each
.IR directory ,
or the current directory if no
.I directory
is named.
The files are categorized by type (files, directories, and so on)
and listed in columns within each category.
.PP
The following options modify the output.
.RS
.IP \fB\-1\fP 0.3i
List only one file name per line (do not print in columns).
Please note that this is the numeral one, not a lower-case el.
.IP \fB\-a\fP
List all file names, including `.' and `..'.
.IP \fB\-b\fP
List block-special files only.
.IP \fB\-c\fP
List character-special files only.
.IP \fB\-d\fP
List directories only.
.IP \fB\-f\fP
List regular files only.
.IP \fB-p\fP
List pipe files only.
.SH "See Also"
.Xr "commands," commands
.Xr "ls" ls
.SH Notes
.B "lc -lf"
is useful for producing a list of regular files.
For example
.DM
	cp \(galc -lf\(ga mydir
.DE
.PP
copies all regular files to directory
.BR mydir .
