MPE/iX Shell and Utilities Reference Manual, Vol 1

lc(1) MPE/iX Shell and Utilities lc(1)
NAME
lc — list file system elements in categories
SYNOPSIS
lc [–adfn1][directory ...]
DESCRIPTION
lc is an alternative to the UNIX ls command and the
DOS dir command. It distinguishes its
output by type generally files or directories. lc displays names in columns, sorted hori-
zontally.
Options
lc accepts the following options:
–a display files and directories the names of which begin with .. These path names 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 combi-
nation –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 cat-
egory **GOK**.
Messages
Message: directory: Component ‘name’ makes path name too long.
Cause: The name component of the specified path name makes the overall path name
longer than the maximum length indicated by the configuration variable
PATH_MAX.
Action: Use cd to move deeper into the directory structure and try lc again. This
should result in a shorter overall path name.
Commands and Utilities 1-283