home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume2 / help / helpfile < prev    next >
Text File  |  1991-08-07  |  19KB  |  433 lines

  1. # version
  2. $Header: helpfile,v 1.1 87/12/26 23:35:43 plocher Posted $
  3. # atob, btoa
  4. btoa, atob -- encode/decode binary to printable ASCII
  5. Usage:  btoa < infile > outfile
  6.         cmd | btoa > outfile
  7.     atob infile
  8. Btoa is a filter that reads anything from the standard input, and encodes it
  9. into printable ASCII on the standard output.  It also attaches a header and
  10. checksum information used by the reverse filter atob to find the start of the
  11. data and to check integrity.
  12.  
  13. Atob reads an encoded file, strips off any leading and trailing lines added
  14. by mailers, and recreates a copy of the original file on the standard
  15. output.  Atob gives NO output (and exits with an error message) if its input
  16. is garbage or the checksums do not check.
  17. # chmod
  18. chmod -- change file modes
  19. Usage:    chmod mode file ...
  20.  
  21. Mode can be either SYMBOLIC or OCTAL.
  22.  
  23. SYMBOLIC MODES:
  24.     [who] op perm
  25.  
  26. who:    `u' (user), `g' (group), `o' (others); `a' is equivalent to `ugo';
  27.  
  28. op:    + adds permission, - removes permission, = sets absolute permissions
  29.  
  30. perm:    `r' read, `w' write, `x' execute (or search for directories);
  31.     Super-User only:
  32.     `s' set UID or set GID; `t' save text/sticky bit.
  33.  
  34. OCTAL MODES:
  35.  
  36.     These are constructed by ORing the appropriate modes from this list:
  37.     
  38.     4000    Set UID (Superuser only)
  39.     2000    Set GID (Superuser only)
  40.     1000    Sticky Bit (Superuser only)
  41.     0400    Read by Owner
  42.     0200    Write by Owner
  43.     0100    Execute by Owner
  44.     0070    Read, Write, Execute by Group
  45.     0007    Read, Write, Execute by Others
  46. # chown
  47. chown, chgrp -- change owner or group
  48. Usage:  chown user file(s)
  49.     chgrp group file(s)
  50.  
  51. User and Group can be either a numerical UID or GID, or a login or group
  52. name found in the /etc/passwd and /etc/group files.
  53.  
  54. Only the owner of a file (or the Superuser) can change the owner or group
  55. of that file.
  56. # col
  57. col -- convert reverse and half line feeds from nroff
  58. Usage:  col [-f -b -x -p] [file(s)]
  59. -f      output device can perform forward half line feeds
  60. -b      output device is cannot backspace
  61. -x      do not output tabs for multiple spaces
  62. -p      let unrecognized escape sequences (other than ESC 7, ESC 8, and
  63.         ESC 9) pass.
  64. Col is used to print nroff output on devices that cannot perform forward and
  65. reverse half line motions or reverse line feeds, as is the case with most
  66. simple printers and CRT terminals. If no files are given, col reads standard
  67. input.
  68. # cu
  69. cu -- call another UNIX system
  70. Usage:    cu [-s speed] [-l line] [-h] [-t] [-d] [-o|e] [-n] telno
  71.     cu [-s speed] [-h] [-d] [-o|e] -l line
  72.     cu [-h] [-d] [-o|e] systemname
  73. -s    Specify transmission speed (300, 1200, 2400, 4800, 9600);
  74. -l    Specify a line to be used
  75. -h    Emulate local echo (half duplex)
  76. -t    Map newline to CR/LF for ascii terminals
  77. -d    Print diagnostic traces
  78. -o    Generate odd parity on outgoing data
  79. -e    Generate even parity on outgoing data
  80. -n    Prompt for telephone number
  81.  
  82. Commands start with `~' in the first column of a line:
  83. ~.    terminate the conversation
  84. ~!    escape to interactive shell on local system
  85. ~!cmd    run cmd locally (via sh -c)
  86. ~$cmd    run cmd locally and send its output to remote system
  87. ~%cd    change directory on local system
  88. ~%take    copy file1 on remote system to file2 on the local system.
  89.     If file2 is not specified, the file will have the same name on the
  90.     local system as on the remote system.
  91. ~%put    copy file1from the local system to file2 on the remote system.
  92.     If file2 is not specified, the file will have the same name on the
  93.     remote system as on the local system.
  94. ~~line    send the line "~line" to the remote system (to execute a cu command on
  95.     the remote system)
  96. ~%break    transmit a BREAK to the remote system
  97. ~%debug    toggle debug option on/off
  98. ~t    print the values of the termio structure variables for the user's
  99.     terminal
  100. ~l    print the values of the termio structure variables for the remote
  101.     communications line
  102. ~%nostop  toggle between XON/XOFF input control protocol and no input control
  103. # help
  104. help -- provide brief command explanations
  105. Usage:    help [command]
  106. Looks in $HELPDIR/$HELPFILE (/usr/lib/ and helpfile are the defaults) for
  107. explanations of a command.
  108. # lp, cancel
  109. lp, cancel -- send/cancel requests to an LP device
  110. Usage:    lp [-c] [-d dest] [-m] [-n num] [-o opt] [-s] [-t title] [-w] [file(s)]
  111.     cancel [ids] [devices]
  112. -c    Copy files immediately instead of linking
  113. -d    Choose dest as the printer or class of printers to do the printing.
  114. -m    Send mail after files have been printed
  115. -n    Print num copies
  116. -o    Specify printer-dependent options
  117. -s    Suppress messages from lp such as "request id is ..."
  118. -t    Print title on the banner page of the output
  119. -w    Write a message on the user's terminal when files have been printed.
  120. Cancel cancels line printer requests that were made with the lp command.
  121. The commandline arguments may be either request ids as returned by lp without
  122. the -s option, or printer names (for a complete list do "lpstat").
  123. # lpstat
  124. lpstat -- print LP status information
  125. Usage:    lpstat [options]
  126. -a list    Print acceptance status (with respect to lp) of destinations for
  127.     requests. "List" is a list of intermixed printer and class names.
  128. -c list    Print class names and their members. "List" is a list of class names.
  129. -d    Print the default destination for lp.
  130. -o list    Print the status of output requests. "List" is a list of intermixed
  131.     printer names, class names, and request ids.
  132. -p list    Print the status of printers. "List" is a list of printer names.
  133. -r    Print the status of the LP request scheduler.
  134. -s    Print a status summary
  135. -t    Print all status information
  136. -u list    Print status of output requests for users. "List" is a list of login
  137.     names.
  138. -v list    Print the names of printers and the pathnames of devices associated
  139.     with them. "List" is a list of printer names.
  140. If "list" is omitted in the above options, all information relevant to the
  141. option letter will be printed.
  142. # mail, mailx
  143. mail, mailx -- electronic mail programs
  144. Usage:    mail        # to check for mail
  145.     mailx
  146.     mail user    # to send mail to user
  147.     mailx user
  148. The options and commands for these two programs are too numerous
  149. to list here. See the manual entries and tutorials if you need more information
  150. than shown above.
  151. # mesg
  152. mesg -- permit or deny messages
  153. Usage:    mesg [-n] [-y]
  154. -n    Forbid messages via write(1)
  155. -y    Allow messages via write(1)
  156. Without options, mesg reports the current status.
  157. # more
  158. more -- file browser
  159. Usage:    more file(s)
  160. # newgrp
  161. newgrp -- log in to a new group
  162. Usage:    newgrp [-] [group]
  163. Invokes a new shell with the group id set to the specified group.
  164. With argument `-', newgrp sets up the environment as if the user had
  165. actually logged in again as a member of the specified group.
  166. Without arguments, the group id is set back to that specified in /etc/passwd.
  167. # nice
  168. nice -- run a command at a low priority
  169. Usage:    nice [-increment] command [arguments]
  170. Nice executes command with a lower CPU scheduling priority. If no "increment"
  171. argument is given, a default of 10 is used.
  172. Only the Superuser may run commands with higher-than-usual priority by using
  173. a negative increment (e.g. --10).
  174. # nohup
  175. nohup - run a command immune to hangups and quits
  176. Usage:    nohup command [arguments]
  177. If nohup should apply to several commands, they should be placed in a file
  178. and invoked as "nohup sh commandfile".
  179. If the output from "command" is not redirected by the user, it will be placed
  180. into a file nohup.out in the current or HOME directory of the user.
  181. # nroff
  182. nroff -- text formatter for line printer devices
  183. Usage:  nroff [options] [files]
  184. -olist  print only pages listed; ranges are allowed
  185. -nN     number first page N
  186. -sN     stop every N pages to allow paper loading or
  187.         changing. Resume upon receipt of a newline.
  188. -raN    set register a (must be one-character name) to N.
  189. -i      read standard input after files are exhausted
  190. -q      invoke the simultaneous input-output mode of the .rd request
  191. -z      print only messages generated by .tm (terminal message) requests
  192. -mname    prepend to the input files the the non-compacted (ASCII text) macro file
  193.     located in /usr/lib/tmac/tmac.name
  194. -cname    prepend to the input files the compacted macro files located in
  195.     /usr/lib/macros/cmp.[nt].[dt].name and 
  196.     /usr/lib/macros/ucmp.[nt].name.
  197. -kname    Compact the macros used in this invocation of nroff, placing the output
  198.     in files [dt].name in the current directory. 
  199. -Tname  prepare output for device name. Known names are 37 (Teletype 37,
  200.         default), ascii (generic ascii printer w/o reverse linefeed),
  201.         ansi (ansi or vt100 terminal), fx80 (Epson FX-80 printer),
  202.         8510 (NEC 8510/C.Itoh dot matrix printer), 3550 (NEC Spinwriter),
  203.         lp (generic ascii printer with reverse linefeed)
  204. -e      produce equally-spaced words in adjusted lines, using full device
  205.         resolution
  206. -h      use output horizontal tabs to speed output and reduce output character
  207.         count. Does not work with all printers.
  208. -wn     set the embolding factor for Font 3 to n, or to zero if n is missing.
  209. # otroff
  210. otroff -- text formatter for Wang Laboratories C/A/T photo typesetter
  211. Usage:  otroff [options] [files]
  212. -olist  print only pages listed; ranges are allowed
  213. -nN     number first page N
  214. -sN     stop every N pages to allow paper loading or
  215.         changing. Resume when typesetter's start button is pressed.
  216. -raN    set register a (must be one-character name) to N.
  217. -i      read standard input after files are exhausted
  218. -q      invoke the simultaneous input-output mode of the .rd request
  219. -z      print only messages generated by .tm (terminal message) requests
  220. -mname    prepend to the input files the the non-compacted (ASCII text) macro file
  221.     located in /usr/lib/tmac/tmac.name
  222. -cname    prepend to the input files the compacted macro files located in
  223.     /usr/lib/macros/cmp.[nt].[dt].name and 
  224.     /usr/lib/macros/ucmp.[nt].name.
  225. -kname    Compact the macros used in this invocation of otroff, placing the output
  226.     in files [dt].name in the current directory. 
  227. -t    Direct output to the standard output instead of the phototypesetter.
  228. -f    Refrain from feeding out paper and stopping the phototypesetter at the
  229.     end of the run.
  230. -w    Wait until phototypesetter is ready, if it is currently busy.
  231. -b    Report on busy/ready status of phototypesetter. No text processing
  232.     is done.
  233. -a    Send a printable ASCII approximation of the result to the standard
  234.     output.
  235. -pN    print all characters in point size N while retaining all prescribed
  236.     spacings and motions, to reduce phototypesetter elapsed time.
  237. -Tcat    Use font-width tables for Wang C/A/T phototypesetter. This is both
  238.     the default and the only choice.
  239. # ps
  240. ps -- display process status
  241. Usage:    ps [options]
  242. -e    Print information about all processes
  243. -d    Print information about all processes, except process group leaders
  244. -a    Print information about all processes, except process group leaders
  245.     and processes not associated with a terminal
  246. -f    Generate a full listing
  247. -l    Generate a long listing
  248. -cfile    Use the specified core file instead of /dev/mem
  249. -sdev    Use the specified swap device instead of /dev/swap
  250. -nfile    Use specified file instead of /unix
  251. -tlist    Restrict listing to processes associated with terminals given in list.
  252. -plist    Restrict listing to processes whose PIDs are given in list.
  253. -ulist    Restrict listing to processes whose UIDs or LOGNAMEs are given in list.
  254. -glist    Restrict listing to processes whose GIDs or GROUP names are given in
  255.     list.
  256. # sleep
  257. sleep -- suspend execution for a specified time
  258. Usage:    sleep seconds
  259. # strip
  260. strip -- remove symbol table from COFF executable files
  261. Usage:    strip [-l] [-x] [-r] [-V] file ...
  262. -l    Strip line number information only; do not strip symbol table
  263. -x    Do not strip static or external symbol information
  264. -r    Reset relocation indexes
  265. -V    Print strip Version information to standard error.
  266. If executed on an ar(1) archive, the archive symbol table will be removed.
  267. # stty
  268. stty - set terminal characteristics and options
  269. Usage:    stty [-a] [-g] [options]
  270. -a    Report all current settings
  271. -g    report current settings in a form that can be used as arguments
  272.     for another stty command.
  273. CONTROL MODES:
  274. parenb (-parenb)    enable (disable) parity generation & detection
  275. parodd (-parodd)    select odd (even) parity
  276. cs5 cs6 cs7 cs8        select character size (data bits)
  277. 0 110 300 600 1200 1800 2400 4800 9600
  278.             select baudrate. 0 hangs up phone immediately.
  279. hupcl (-hupcl)        hangup (don't hangup) dataphone on last close
  280. hup (-hup)        same as hupcl (-hupcl)
  281. cstopb (-cstopb)    use two (one) stop bits per character
  282. cread (-cread)        enable (disable) the receiver
  283. clocal (-clocal)    assume a line without (with) modem control
  284. loblk (-loblk)        block (don't block) output from non-current layer
  285. INPUT MODES:
  286. ignbrk (-ignbrk)    ignore (don't ignore) break on input
  287. brkint (-brkint)    signal (don't signal) INTR on break
  288. ignpar (-ignpar)    ignore (don't ignore) parity errors
  289. parmrk (-parmrk)    mark (don't mark) parity errors
  290. inpck (-inpck)        enable (disable) input parity checking
  291. istrip (-istrip)    strip (don't strip) input characters to 7 bits
  292. inlcr (-inlcr)        map (don't map) NL to CR on input
  293. igncr (-igncr)        ignore (don't ignore) CR on input
  294. icrnl (-icrnl)        map (don't map) CR to NL on input
  295. iuclc (-iuclc)        map (don't map) upper case to lower case on input
  296. ixon (-ixon)        enable (disable) XON/XOFF output control
  297. ixany (-ixany)        allow any character (only XON) to restart output
  298. ixoff (-ixoff)        request that system send (not send) XON/XOFF
  299.             characters when input queue is nearly empty/full.
  300. OUTPUT MODES
  301. opost (-opost)        post-process output (do not post-process output; ignore
  302.             all other output modes)
  303. olcuc (-olcuc)        map (don't map) lower case to upper case on output
  304. onlcr (-onlcr)        map (don't map) NL to CR-NL on output
  305. ocrnl (-ocrnl)        map (don't map) CR to NL on output
  306. onocr (-onocr)        do not (do) output CR at column 0
  307. onlret (-onlret)    on the terminal, NL performs (doesn't perform) the
  308.             RETURN function
  309. ofill (-ofill)        use fill characters (use timing) for delays
  310. ofdel (-ofdel)        fill characters are DELs (NULs)
  311. cr0 cr1 cr2 cr3        set style of delay for CRs
  312. nl0 nl1            set style of delay for LFs
  313. tab0 tab1 tab2 tab3    set style of delay for horizontal tabs
  314. bs0 bs1            set style of delay for backspaces
  315. ff0 ff1            set style of delay for formfeeds
  316. vt0 vt1            set style of delay for vertical tabs
  317.  
  318. LOCAL MODES
  319. isig (-isig)        enable (disable) interpretation of special control
  320.             characters INTR, QUIT, ans  SWTCH.
  321. icanon (-icanon)    enable (disable) canonical input (ERASE and KILL
  322.             processing)
  323. xcase (-xcase)        canonical (unprocessed) upper/lower case presentation
  324. echo (-echo)        echo back (don't echo back) every character typed
  325. echoe (-echoe)        echo (don't echo) ERASE as a backspace-space-backspace
  326.             string
  327. echok (-echok)        echo (don't echo) NL after KILL character
  328. lfkc (-lfkc)        same as echok (-echok) -- obsolete.
  329. echonl (-echonl)    echo (don't echo) NL
  330. noflsh (-noflsh)    disable (enable) flush after INTR, QUIT, or SWTCH
  331. stwrap (-stwrap)    disable (enable) truncation of lines longer than 79
  332.             characters on a synchronous line
  333. stflush (-stflush)    enable (disable) flush on synchronous line after every
  334.             write(2)
  335. stappl (-stappl)    use application mode (use line mode) on a synchronous
  336.             line
  337.  
  338. CONTROL ASSIGNMENTS
  339. control-char c        set control-char to c, where control-char is one of:
  340.             erase, kill, intr, quit, swtch, eof, ctab, min, or time
  341.             If c is preceded by an (escaped from the shell) caret
  342.             (^), then the value used is the corresponding CTRL 
  343.             character (e.g. "^d" is CTRL-D); "^?" is DEL.
  344. line i            set line discipline to i ( 0 < i < 127 ).
  345.  
  346. COMBINATION MODES
  347. evenp or parity        parenb cs7
  348. oddp            parenb cs8 parodd
  349. -parity            -parenb cs8
  350. -evenp            -parenb cs8
  351. -oddp            -parenb cs8
  352. raw (-raw or cooked)    enable (disable) raw input and output (no ERASE, KILL,
  353.             INTR, QUIT, SWTCH, EOT, or output post processing).
  354. nl (-nl)        unset (set) icrnl, onlcr. In addition, -nl unsets
  355.             inlcr, igncr, ocrnl, and onlret.
  356. lcase (-lcase)        set (unset) xcase, iuclc, and olcuc.
  357. LCASE (-LCASE)        same as lcase (-lcase)
  358. tabs (-tabs or tab3)    preserve (expand to spaces) tabs when printing
  359. ek            set ERASE and KILL characters back to # and @.
  360. sane            reset all modes to some reasonable values
  361. term            set all modes suitable for the terminal type term,
  362.             where term is one of tty33, tty37, vt05, tn300, ti700,
  363.             or tek.
  364.  
  365. IF THIS FLASHED BY QUICKER THAN YOU COULD READ IT, TRY IT AGAIN LIKE THIS:
  366.  
  367.     help stty | more
  368.  
  369. # su
  370. su -- become super-user or another user
  371. Usage:    su [-] [name [arg ...]]
  372. -    If the first argument to su is `-', the environment will be changed
  373.     to what it would be if the user actually logged in as "name".
  374. name    If name is given, become that user. If no name is given, become
  375.     root (e.g. the super-user).
  376. arg    Optional arguments are passed to the shell invoked by su.
  377.     Thus, "su - bin -c command args" executes "command" with the temporary
  378.     environment and permissions of user "bin".
  379. # tput
  380. tput - query terminfo database
  381. Usage:    tput [-Ttype] capname [parms...]
  382. -Ttype    indicates the type of terminal. Normally unnecessary, since
  383.     the default is taken from the environment variable TERM.
  384. capname    indicates the attribute (capabilitry) from the terminfo database
  385. parms    if the capability needs parameters, the argument parms will be
  386.     instantiated into the string.
  387. # troff
  388. troff, ditroff -- text formatter for typesetters and other high-resolution
  389.           output devices
  390. Usage:    troff [options] [files]
  391. -o list    Print only pages whose numbers appear in "list".
  392. -nN    Number first page generated N.
  393. -sN    Generate output to encourage typesetter to stop every N pages
  394. -mname    Prepend the macro file /usr/lib/tmac/tmac.name to the input files.
  395. -raN    Set register a (one-character name) to N.
  396. -i    Read standard input after the input files are exhausted.
  397. -q    Invoke the simultaneous input-output mode of the .rd request
  398. -z    Print only messages generated by the .tm request
  399. -a    Send a printable ASCII approximation of the results to the standard
  400.     output.
  401. -Tdest    Prepare output for typesetter dest. 
  402. # true
  403. true, : , false -- provide truth values
  404. Usage:    : [argument ...]
  405.     true [argument ...]
  406.     false
  407. True and : do nothing, successfully. False does nothing, unsuccessfully.
  408. : is also used as a magic number for Bourne or Korn shell scripts in a
  409. C-Shell environment.
  410. # tty
  411. tty -- get name of terminal
  412. Usage:    tty [-l] [-s]
  413. -l    print synchronous line number if the terminal is on an active
  414.     synchronous line
  415. -s    prevent printing of tty pathname, return result as a return code.
  416.     2 - invalid options; 0 - if tty is a terminal; 1 - otherwise
  417. # umask
  418. umask -- set file-creation mode mask
  419. Usage:    umask [ooo]
  420. Without an argument, umask prints the current value of the mask.
  421. With argument, umask sets the mask to the value specified by the three-digit
  422. octal number. See help entry for chmod for legal values.
  423. # write
  424. write -- write to another user
  425. Usage:    write user [line]
  426. If you want to write to a user who is logged in more than once,  the 
  427. "line" argument may be used to direct which terminal to write to.
  428. Permission to write may be denied or granted by the use of mesg(1).
  429. During a write session, a line starting with ! will cause the rest
  430. of that line to be passed to the shell as a command.
  431. Terminate a write session with your INTR or EOF character.
  432.  
  433.