home *** CD-ROM | disk | FTP | other *** search
- From: sweet%kelvin@s3dawn.ARPA (Kevin Sweet)
-
- This is a public domain implementation of the `ls' routine command
- similar to the one available under 4.xBSD.
-
- It was written by Kevin Sweet and released to the public domain 1988.
- (This manual by Rahul Dhesi, obtained by slightly revising the
- electronic message that accompanied this software.)
-
- This software was written using the Turbo C v1.5(c) compiler under
- MS-DOS v3.3(c). The syntax is nearly identical with that found on UNIX
- systems with the exception that options that do not apply in an MSDOS
- environment are not supported, directory entry sizes are not reported,
- and three new options have been added (PSZ). In addition, two compile
- time options exist (SIZE_CL, DOT_AL-- see comment in source code).
-
- compile with: tcc -ms -f- -Z -O -G -k -N ls
-
-
- ls - list the contents of a directory in alphabetical order
-
- usage: ls [-1CFPRSZadflrst] name ...
-
- options:
- -1 list in one column format
- -C list in multi-column format (default)
- -F directories are marked with a trailing '\', system files are marked
- with a trailing '@' and executable files are marked with a trailing '*'
- -P print the directory name before listing
- -R recursively list subdirectories
- -S sort by file size in bytes (cluster size if option 's' is selected)
- -Z list full pathnames in one column for input to Zoo
- -a list all entries including hidden and system files
- -d list directories as if they were a normal file
- -f do not sort (list in the order files appear in the directory)
- -l list in long format ([size in clusters,] mode, size, date, name)
- -r reverse the order of the selected sort
- -s list the file size in clusters
- -t sort by time
-
- ls parses the environment variable LS for options before parsing the
- command line. Options may be turned off with a trailing '-' (e.g.
- "ls -1F-s" turns on the '1' and 's' options and turns off the 'F'
- option).
-