SYNOPSIS
lc [
DESCRIPTION
lc is an alternative to the UNIX ls command and the Windows dir command. It distinguishes its output by type -- generally files or directories. On Windows systems, hidden and read-only files and directories are shown separately. On UNIX and POSIX-compliant systems, device-special files are also shown separately. lc displays names in columns, sorted horizontally.
Options
-a -
displays all files and directories including those whose names begin with ".". File and directory names beginning with . are not usually shown.
-d -
displays directories only.
-f -
displays files only.
-n -
suppresses all output. This is useful when you only want to use the exit status.
-1 -
displays one file per line.
DIAGNOSTICS
Possible exit status values are:
- 0
-
lc successfully found files under the specified directory and displayed their names.
- 1 directory
-
contains no files or subdirectories. For example, you can use the option combination
-nd to determine if a directory has any subdirectories. - 2
-
Failure because of an invalid command line option or insufficient memory.
Under rare conditions, lc cannot identify the type of a file. Such files are listed under the category **GOK**.
PORTABILITY
Windows 2000. Windows XP. Windows Server 2003. Windows Vista. A frequent add-on to UNIX systems.
AVAILABILITY
MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
MKS Toolkit 9.2 Documentation Build 16.