lc

list file system elements in categories 

Command


SYNOPSIS

lc [-adfn1] [directory ...]


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 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022. A frequent add-on to UNIX systems.


AVAILABILITY

PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Commands:
c, ls


PTC MKS Toolkit 10.4 Documentation Build 39.