home *** CD-ROM | disk | FTP | other *** search
/ Oakland CPM Archive / oakcpm.iso / sigm / vol132 / ls.doc < prev    next >
Encoding:
Text File  |  1984-04-29  |  1.5 KB  |  41 lines

  1.                                     
  2.       ls.com  -  CP/M Directory lising program              
  3.                                    
  4.       The program lists the directory in several different     
  5.       formats depending on switches set in the command     
  6.       line (ala C).    Explanation of the switches follows:     
  7.                                    
  8.       Size specification:                     
  9.           -f    Lists full directory (file size in     
  10.               records, size file takes in disk     
  11.               space, and the files attributes         
  12.           -b    Lists brief directory (file size in     
  13.               records only                 
  14.          default    Lists file names only             
  15.       Attribute specification:                 
  16.           -n    Lists files that are SYS only          
  17.           -r    Lists files that are R/O only         
  18.           -w    Lists files that are R/W only         
  19.           -a    Lists files regardless of attributes     
  20.          default    Lists files that are DIR only         
  21.               (corresponds to CP/M dir)         
  22.       Sort specification:                     
  23.           -s    Sorts listed files alphabettically     
  24.          default    Does not sort files             
  25.       Case specification:                     
  26.           -u    Lists information in upper case         
  27.          default    Lists information in lower case         
  28.                                    
  29.       For the size or attributes specifications - if two     
  30.       of any switches in either of these groups are set -     
  31.       a conflict arises and a warning is issued and the        
  32.       default setting for the group is set.             
  33.       e.g. ls  .com -fb    This command asks for a full     
  34.       and a brief listing at the same time.  Here warning     
  35.       is issued and default set (brief, brief listing)     
  36.       Switches may be set in any order and can be con-     
  37.       catenated or separated.                     
  38.       e.g. ls *.com -fasl does the same as
  39.       ls *.com -a -s -fl                    
  40.                                    
  41.