home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / SYSTEM / UXUTL162.ZIP / MANUAL < prev    next >
Encoding:
Text File  |  1990-06-29  |  8.8 KB  |  301 lines

  1. This is simply a list of the utilities and their switches.  For more
  2. information you are referred to the appropriate UNIX manual pages.
  3.  
  4. I make no promises about these utilities (fixing them, bugs etc).  However,
  5. I do use most of them daily.  I have not pointed out which switches are
  6. meaningless (like -l for cpio).  The utilities ignore meaningless switches
  7. and remove illegal ones.
  8.  
  9. mv.exe and df.exe should be copied to cp.exe and bdf.exe respectively to
  10. get alternate versions of the commands.
  11.  
  12.  
  13.  
  14. basename - get file basename
  15.  
  16.     Usage: basename string [suffix]
  17.  
  18.  
  19. cat - concatenate files
  20.  
  21.     Usage: cat [-usvtenqb] files
  22.  
  23.     -b:  Displays ouput lines preceded by line numbers omitting blank lines.
  24.     -e:  A "$" character is displayed at the end of each line.
  25.     -n:  Displays output lines preceded by line numbers
  26.     -q:  Quiet option.  
  27.     -s:  Squeeze option.  
  28.     -t:  Tab characters print as ^ I.
  29.     -u:  Does not buffer output.
  30.     -v:  Displays non-printing characters so that they are visible.
  31.  
  32.  
  33. chmod - change file mode
  34.  
  35.     Usage: chmod [-R] [absolute-mode | symbolic-mode | string-mode] files
  36.  
  37.     -R:            Recursively descend directories
  38.     absolute mode    01 - Set read-only bit
  39.             02 - Set hidden bit
  40.             04 - Set system bit
  41.             40 - Set archive bit
  42.  
  43.     symbolic mode    -+ a - Set archive bit
  44.             -+ h - Set hidden bit
  45.             -+ r - Set read-only bit
  46.             -+ s - Set system bit
  47.     string mode        rw----ASH - use ls format to set bits
  48.  
  49.  
  50. cmp - compare files
  51.  
  52.     Usage: cmp [-ls] file1 file2
  53.  
  54.     -l:  Print the byte number and the differing bytes for each difference.
  55.     -s:  Print nothing for differing files; exit codes only.
  56.  
  57.  
  58. cpio - read/write archive file.
  59.  
  60.     Usage: cpio -o [ acxBTv O <output file>]
  61.         -i [ BTxcdmkrtuvfsSb6 I <input file>] [ patterns ]
  62.         -p [ adrxlmuv ] directory
  63.  
  64.     -i:  Extracts files from standard input
  65.     -o:  Write files to standard output
  66.     -p:  Reads the standard input to obtain a list of path names
  67.         of files that are conditionally created and copied into
  68.         the destination
  69.     -a:  Reset access times of input files after they have been copied
  70.     -B:  Input/output is to be blocked 5,120 bytes
  71.     -d:  Directories are to be created as needed
  72.     -c:  Write header information in ASCII character format
  73.     -r:  Interactively rename files
  74.     -t:  Print a table of contents of the input
  75.     -u:  Copy unconditionally
  76.     -v:  Verbose
  77.     -l:  Link files rather than copying them
  78.     -m:  Retain previous file modification time
  79.     -f:  Copy in all files except those in patterns
  80.     -s:  Swap bytes.
  81.     -S:  Swap halfwords
  82.     -T:  Swap halfwords in binary header only
  83.     -b:  Swap both bytes and halfwords
  84.     -6:  Process an UNIX System Sixth Edition format file
  85.     -k:  Attempt to recover corrupt archive
  86.     -I:  Read from file rather that stdin
  87.     -O:  Write to file rather that stdout
  88.  
  89.     Note: Support raw disk I/O to /dev/fdx and /dev/hdxy.  See ms_dio.2 for
  90.       explanation.
  91.  
  92. Usage: date [-q] [+format] [[MMDDYY]hhmm[ss]]
  93.  
  94.  
  95. dd - disk duplicate
  96.  
  97.     Usage: dd [options]
  98.  
  99.     Refer to POSIX or SysV.2 manuals
  100.  
  101.     Note: Support raw disk I/O to /dev/fdx and /dev/hdxy.  See ms_dio.2 for
  102.       explanation.
  103.  
  104.  
  105. df - report free space
  106.  
  107.     Usage: df [drive]
  108.  
  109.     Note: copy to df.exe to bdf.exe to generate BSD UNIX format.  df
  110.     generates SysV.2 format.
  111.  
  112.  
  113. du - summarize disk usage
  114.  
  115.     Usage: du [-ars] [startdir]
  116.  
  117.     -s:  Causes only the grand total to be given
  118.     -a:  Causes an entry to be generated for each file
  119.     -r:  Report unreadable directories
  120.  
  121.  
  122. fgrep - string matcher
  123.  
  124.     Usage: fgrep [-vxcilnbs] [-e string] [-f file] [string] [files..]
  125.  
  126.     -x:        Only lines matched in their entirety are printed
  127.     -v:        All lines but those matching are printed
  128.     -c:        Only a count of matching lines is printed
  129.     -i:        Ignore upper/lower case distinction during comparisons
  130.     -l:        Only the names of files with matching lines are listed (once),
  131.         separated by new-lines
  132.     -n:        Each line is preceded by its relative line number in the file
  133.     -b:        Each line is preceded by the block number on which it was found
  134.     -s:        The error messages produced for nonexistent or unreadable
  135.         files are suppressed
  136.     -e string    Same as a simple string argument,
  137.     -f file    The string list is taken from the file.
  138.  
  139.  
  140. find - scan path for files
  141.  
  142.     Usage: find path-list predicate-list
  143.  
  144.     Refer to UNIX manual for explanation of options
  145.  
  146.  
  147. grep - general regular expression pattern matcher
  148.  
  149.     Usage: grep [-vcilnbs] [-e string] [-f file] [string] [files..]
  150.  
  151.     -v:            All lines but those matching are printed
  152.     -c:            Only a count of matching lines is printed
  153.     -i:            Ignore upper/lower case distinction during comparisons
  154.     -l:            Only the names of files with matching lines are listed
  155.             (once), separated by new-lines
  156.     -n:            Each line is preceded by its relative line number in
  157.             the file
  158.     -b:            Each line is preceded by the block number on which it
  159.             was found
  160.     -s:            The error messages produced for nonexistent or
  161.             unreadable files are suppressed
  162.     -e expression    Same as a simple expression argument,
  163.     -f file        The regular expression list is taken from the file.
  164.  
  165.  
  166. ls - list files
  167.  
  168.     Usage: ls [-xutsrpqonmligfdcbaACFR] [file list]
  169.  
  170.     -R:  Recursively list subdirectories encountered
  171.     -a:  List all entries under MSDOS
  172.     -A:  List all entries under MSDOS
  173.     -d:  If an argument is a directory, list only its name (not its contents)
  174.     -C:  Multi-column output with entries sorted down the columns
  175.     -x:  Multi-column output with entries sorted across the page
  176.     -m:  Stream output format
  177.     -l:  List in long format
  178.     -n:  The same as -l for MSDOS
  179.     -o:  The same as -l , except that the group is not printed
  180.     -g:  The same as -l , except that the owner is not printed
  181.     -r:  Reverse the order of sort
  182.     -t:  Sort by time modified (latest first) instead of by name
  183.     -u:  Use time of last access instead of last modification for sorting
  184.     -c:  Use time of last modification of the i-node for sorting
  185.     -p:  Put a slash after each filename if that file is a directory
  186.     -F:  Put a slash after each filename if that file is a directory and
  187.          put an asterisk after each filename if that file is executable
  188.     -b:  Force printing of non-graphic characters in octal \eddd notation
  189.     -q:  Force printing of non-graphic characters in as ?
  190.     -i:  Print the i-number in the first column of the report
  191.     -s:  Print the size in blocks
  192.     -f:  Force each argument to be interpreted as a directory and list the
  193.      name found in each slot.
  194.  
  195.  
  196. mkdir - make directory
  197.  
  198.     Usage: mkdir [-p] directory_name [ ... directory_name ]
  199.  
  200.     -p:  Make all missing directorys on path
  201.  
  202.  
  203. mv - Move/copy files
  204.  
  205.     Usage: mv [-iprfv] f1 f2
  206.        mv [-iprfv] f1 ... fn d1
  207.        mv [-iprfv] d1 d2
  208.  
  209.     -i:  Ask about overwritting files
  210.     -p:  Restore modification times
  211.     -r:  Recursively process directory trees
  212.     -f:  Silent move
  213.     -v:  Verbose output
  214.  
  215.     Note: copy mv.exe to cp.exe to generate the copy program.  Under
  216.     UNIX, the two are normally linked.
  217.  
  218.  
  219. od - octal dump
  220.  
  221.     Usage: od [-bcdhox] [file] [ [+] offset [.] [b] ]
  222.  
  223.     -h:  Output as word in hex format
  224.     -b:  Interpret bytes in octal
  225.     -c:  Interpret bytes in ASCII
  226.     -d:  Interpret words in unsigned decimal
  227.     -o:  Interpret words in octal
  228.     -x:  Interpret words in hex
  229.  
  230.  
  231. rm - remove files
  232.  
  233.     Usage: rm [-fir] file
  234.  
  235.     -f:  Remove silently
  236.     -i:  Confirm removal
  237.     -r:  Remove recursively down the directory tree
  238.  
  239.  
  240. rmdir - remove directory
  241.  
  242.     Usage: rmdir [-p] dir ...
  243.  
  244.     -p:    Remove all directorys on path
  245.  
  246.  
  247. sleep - sleep
  248.  
  249.     Usage: sleep time
  250.  
  251.  
  252. sort - Sort data
  253.  
  254.     Usage: sort -ri [-o out file] [-k key start] [-l key length] file name
  255.  
  256.     -r:            Reverse sort order
  257.     -i:            Ignore case
  258.     -o out_file:    Output to this file
  259.     -k key_start:    Start offset of key
  260.     -l key_lengthL    Key of sort key
  261.  
  262.  
  263. tee - Pipe fitting
  264.  
  265.     Usage: tee [-i] [-a] [files].
  266.  
  267.     -i:  Ignore interrupts
  268.     -a:  Append to output files
  269.  
  270.  
  271. touch - Change time times
  272.  
  273.     Usage: touch [-amc] [-s newsize] [-t mmddhhmm[CC]yy.ss] [-f ref_file] file..
  274.  
  275.     -a:                Change access time
  276.     -m:                Change modification time
  277.     -c:                Change creation time
  278.     -s newsize:            Change file size
  279.     -t mmddhhmm[CC]yy.ss:    Set new time for changes to mmddhhmm[CC]yy.ss
  280.     -f ref_file:        Use ref_files times for change
  281.  
  282.  
  283. uniq - Print unique lines
  284.  
  285.     Usage: uniq -udc [file names]
  286.  
  287.     -c:  Report duplication counts
  288.     -d:  Print duplicate lines
  289.     -u:  Print uniq lines
  290.  
  291.  
  292. wc - Word Counter
  293.  
  294.     Usage: wc [-lwc] [name ...]
  295.  
  296.     -l:  Report line count
  297.     -c:  Report character count
  298.     -w:  Report character word
  299.  
  300.  
  301.