DragonFly On-Line Manual Pages

Search: Section:  


LC(1)                  DragonFly General Commands Manual                 LC(1)

NAME

lc - list directory and file names in columns

SYNOPSIS

lc [ -fdbcspan1 ] [ directory ... ]

DESCRIPTION

Lc lists the elements of the given directories. The elements are divided into the five basic types (files, directories, character special files, block special files, and pipes) and are printed in alphabetical order. They are normally printed 5 to a line, preceeded by a title indicating the type, but the -1 option can be used to force single-column untitled output. If no argument is given, the current working directory is used by default. The contents of all directories named in the argument list are displayed. while all other names (i.e. non-directories) are ignored. This feature allows one to use a shell's pattern matching abilities to generate the arguments without having to worry about non- directory names that might also be matched (e.g. would do an lc of all the non-hidden directories in one's home directory). The special entries and are normally not listed; the -a option causes them to be listed as well. The -n option turns off all output; this is useful when only the exit status is wanted. (The exit status is 0 if something would have been printed, 1 otherwise.) If any of the following option arguments are given, lc lists only those types of entries; otherwise, all entries are listed. The options and their meanings are: f list ordinary files d list directories b list block special files c list character special files s list all special files p list permanent pipes Lc may be used with the substitution features of the Shell to select particular kinds of files (eg, directories) to take part in some processing, for example: This lists the contents of all sub-directories of the current directory.

DIAGNOSTICS

Symbolic links are normally followed, and each prints under the category of the type of thing to which it is linked. If the symbolic link points to a nonexistent pathname, or if you do not have permission to resolve the pathname, lc will list the link under the category Unresolved Symbolic Links.

AUTHOR

Math Faculty Computing Facility, University of Waterloo Waterloo, Ontario, Canada http://www.math.uwaterloo.ca/mfcf/ UW LC(1)

Search: Section: