home *** CD-ROM | disk | FTP | other *** search
-
- NNAAMMEE
- ls - list the contents of a directory
-
- SSYYNNOOPPSSIISS
- llss [ -aAbcCdfFghilmnopqrRstux ] [ _f_i_l_e_n_a_m_e ]...
-
- DDEESSCCRRIIPPTTIIOONN
- For each _f_i_l_e_n_a_m_e which is a directory, llss lists the contents of
- the directory; for each _f_i_l_e_n_a_m_e which is a file, llss repeats its
- name and any other information requested. By default, the output
- is sorted alphabetically. When no argument is given, the current
- directory is listed. When several arguments are given, the
- arguments are first sorted appropriately, but file arguments are
- processed before directories and their contents.
-
- This version uses a file globbing mechanism similar to sshh(1), so
- giving commands like "ls */*.[ch]" will produce results similar to
- those produced by sshh(1).
-
- In order to determine output formats for the --CC, --xx, and --mm
- options, llss examines the COLUMNS environment variable to determine
- the number of character positions available on an output line. If
- this variable is not set, 80 columns are assumed.
-
- The mode printed under the --ll option contains 6 characters
- interpreted as follows. Each character represents one bit of the
- directory attribute field. The characters represent:
- a the ARCHIVE attribute;
- d entry is a directory;
- v entry is a volume label;
- s the SYSTEM attribute;
- h the HIDDEN attribute;
- r the READ-ONLY attribute.
-
- Dates and times are always printed with the same format, to make
- life easier for scripts and token parsers.
-
- OOPPTTIIOONNSS
- The following options can appear either on the command line
- (preceding any other arguments) or in the environment variable
- LSFLAGS (for example, "set LSFLAGS=ACbp").
-
- --aa List all entries; in the absence of this option, the "." and
- ".." entries or entries that have the HIDDEN or SYSTEM attribute
- are nnoott listed.
-
- --AA Same as -a, except that "." and ".." are not listed.
-
- --bb Force printing of non-graphic characters to be in the octal \ddd
- notation.
-
- --cc Use time of last modification for sorting or printing. If not
- available, 0 is used and dashes are printed.
-
- --CC Force multi-column output, with entries sorted down the
- columns.
-
- --dd If argument is a directory, list only its name (not its
- contents); often used with --ll to get the status of a directory.
-
- --ff Not supported.
-
- --FF Mark directories with a trailing slash ('/') and executable
- files with a trailing asterisk ('*'). llss is generous in the
- interpretation of "executable".
-
- --gg Same as --ll.
-
- --hh Display a more complete usage description on the standard
- output.
-
- --ii Not supported.
-
- --ll List in long format, giving attributes, size in bytes, and time
- of last modification for each file. If the file is a device the
- attribute field will contain the string "DEVICE", and the size
- field will contain the hexadecimal representation of the magic
- number returned by the system.
-
- --mm Stream output format; the file names are printed as a list
- separated by commas, with as many entries as possible printed on
- a line.
-
- --nn Same as --ll.
-
- --oo Same as --ll.
-
- --pp Put a slash ('/') after each filename if that file is a
- directory.
-
- --qq Display non-graphic characters in filenames as the character ?;
- this is the default when output is to a terminal.
-
- --rr Reverse the order of sort to get reverse alphabetic or oldest
- first as appropriate.
-
- --RR Recursively list subdirectories encountered.
-
- --ss Give size of each file in kilobytes.
-
- --tt Sort by time modified (latest first) instead of by name.
-
- --uu Use time of last access instead of last modification for sorting
- (with the -t option) and/or printing (with the -l option).
-
- --xx Multi-column output with entries sorted across rather than down
- the page.
-
- Copyright (c) 1991 Frank E. Whaley All rights reserved
-