home *** CD-ROM | disk | FTP | other *** search
- ls - list file names
-
- SYNOPSIS
- ls [-adlrstu1ACFR] name1 name2 ...
-
- DESCRIPTION
- This is as closely as possible an imitation of the Unix<tm> utility of
- the same name. Options accepted are:
-
- a List all files (including system and hidden files, as well as
- the dummy directory entries '.' and '..').
- d List the argument(s) as a directory (as opposed to its
- contents).
- l Give a long listing, one per line (except as described below).
- r Sort the entries in reverse the usual order.
- s Print the size of each file in clusters.
- t Sort the entries by time.
- u Do not sort the entries.
- 1 List the entries one per line.
- A Same as -a, except that '.' and '..' are not listed.
- C Give a multi-column output.
- F Add a trailing slash to directory names.
- R Recursively list files in all subdirectories ('.' and '..' are
- never listed in this manner).
-
- For the date of the root directory of a drive, the date of the volume
- label is used, if present; otherwise it is left blank.
-
- By default, multicolumn output is selected when the output is to the
- screen, off otherwise. If the -l option is selected, however, the
- default is one file per line. One can do -lC if all file names are at
- most 12 characters long, though.
-
- The characters in the -l lines differ from those in Unix<tm>, because
- of the differing file systems. The various bits used here are:
-
- d---- the file is a subdirectory
- -a--- the file has not been backed up
- --s-- the file is a system file
- ---h- the file is hidden
- ----r the file is read-only
-
- And finally, in conformance with the DOS DIR command, arguments without
- a "." in them have ".*" automatically appended, unless they refer to
- a subdirectory.
-
- ENVIRONMENT
- Additional options may be specified in the environment variable LS.
- For example: set ls=F
-
- BUGS
- Does not report disk space used by subdirectories themselves (just
- their files).
-