home *** CD-ROM | disk | FTP | other *** search
/ Hacks & Cracks / Hacks_and_Cracks.iso / hackersclub / km / library / hack / unix.txt < prev    next >
Text File  |  1998-03-25  |  83KB  |  1,978 lines

  1. The Psychotic Internet Services' Unix Bible- A reference for all of us.
  2.  
  3.  
  4. A list of commands and a quick description
  5. alias  ........  this allows the user view the current aliases
  6. awk ........  this allows the user to search for a pattern within a file
  7. bdiff ......... compares two large files
  8. bfs .......... scans a large file
  9. cal ......... shows a calendar
  10. cat ......... concatenates and  prints a file
  11. cc ......... c compiler
  12. cd ........ changes directories
  13. chgrb ......... changes a file groups ownership
  14. chmod ....... changes the permission on a file
  15. chown .......... changes the individual ownership of a file
  16. cmp ......... compairs two files
  17. comm .......... compares two files so as to determine which lines are common to both
  18. cp .......... copies file to another location
  19. cu ......... calls another unix sysytem
  20. date .......... returns the date and time
  21. df ......... shows all mounted drives on your machine
  22. diff ......... displays the diference between two files
  23. du ......... shows the disk usage in blocks for a directory
  24. echo ........ echoes the data to the screen or file
  25. ed ........ text editor
  26. env ......... lists the current environment variables
  27. ex ........ another text editor
  28. expr ........ evaluates a mathmatical formula
  29. find ........ finds a file
  30. f77 .......... fortran complier
  31. format ........ initializes a floppy disk
  32. grep ......... searches for a pattern within a file
  33. help ......... gives help
  34. kill ........ stops a running process
  35. ln ........ creates a link between two files
  36. lpr ......... copies the file to the line printer
  37. ls ......... lists the files in a directory
  38. mail ........ allows the user to send/receive mail
  39. mkdir .......... makes directory
  40. more ......... displays a data file to the screen
  41. mv ........... used to move or rename files
  42. nohup ........ allows a command to continue running even when you log out
  43. nroff ......... used to format text
  44. passwd ........ changes your password
  45. pkgadd ......... installs a new program onto your machine
  46. ps ........... Lists the current processes running
  47. pwd ........ displays the name of the working directory
  48. rm ........ removes files
  49. rmdir ........ removes directories
  50. set ......... lists all the variables in the current shell
  51. setenv ......... sets the environment variables
  52. sleep ......... causes a process to become inactive
  53. source ......... allows the user to execute a file and update any changed values in that file
  54. sort .......... sorts files
  55. spell ......... checks for spelling errors in a file
  56. split ........ divides a file
  57. stty ......... sets the terminal options
  58. tail ......... displays the end of a file
  59. tar ......... copies all specified files into one
  60. touch ........ creates an empty file or updates the time/date stamp on a file
  61. troff ......... outputs formatted output
  62. tset ........ sets the terminal type
  63. umask ......... specify a new creation mask
  64. uniq ......... compairs two files
  65. uucp ........ unix to unix execute
  66. vi ........ full screen editor
  67. vipw ......... opens the vi editor as well as password file for editing
  68. volcheck ......... checks to see if there is a floppy disk mounted to your machine
  69. wc ......... displays detail in the full size
  70. who ........ inf. on other people online
  71. write ......... send a message to another user
  72. ! ....... repeats commands
  73.  
  74.  
  75. More commands with a better description (Not all commands are listed).
  76. cat: -b, --number-nonblank
  77. Number all nonblank output lines, starting with 1. 
  78.  
  79. -e 
  80.      Equivalent to -vE. 
  81.  
  82. -n, --number
  83.      Number all output lines, starting with 1. 
  84.  
  85. -s, --squeeze-blank
  86.      Replace multiple adjacent blank lines with a single blank line. 
  87.  
  88. -t 
  89.      Equivalent to -vT. 
  90.  
  91. -u 
  92.      Ignored; for Unix compatibility. 
  93.  
  94. -v, --show-nonprinting
  95.      Display control characters except for LFD and TAB using `^' notation and precede
  96.      characters that have the high bit set with `M-'. 
  97.  
  98. -A, --show-all
  99.      Equivalent to -vET. 
  100.  
  101. -E, --show-ends
  102.      Display a `$' after the end of each line. 
  103.  
  104. -T, --show-tabs
  105.      Display TAB characters as `^I'. 
  106.  
  107. --help
  108.      Print a usage message and exit with a status code indicating success. 
  109.  
  110. --version
  111.      Print version information on standard output then exit.
  112. _____________________________________________________________________________________
  113. cd: directory becomes the new working directory. The process must have execute (search) permission
  114. in directory. If cd is used without arguments, it returns you to your login directory. In csh you
  115. may specify a list of directories in which directory is to be sought as a subdirectory if it is not a
  116. subdirectory of the current directory; see the description of the cdpath variable in csh.
  117. chmod: The format of a symbolic mode is `[ugoa...][[+=][rwxXstugo...]...][,...]'. Multiple symbolic
  118. operations
  119. can be given, separated by commas. 
  120.  
  121. A combination of the letters `ugoa' controls which users' access to the file will be changed: the user
  122. who owns it (u), other users in the file's group (g), other users not in the file's group (o), or all users
  123. (a). If none of these are given, the effect is as if `a' were given, but bits that are set in the umask are
  124. not affected. 
  125.  
  126. The operator `+' causes the permissions selected to be added to the existing permissions of each
  127. file; `-' causes them to be removed; and `=' causes them to be the only permissions that the file has. 
  128.  
  129. The letters `rwxXstugo' select the new permissions for the affected users: read (r), write (w),
  130. execute (or access for directories) (x), execute only if the file is a directory or already has execute
  131. permission for some user (X), set user or group ID on execution (s), save program text on swap
  132. device (t), the permissions that the user who owns the file currently has for it (u), the permissions
  133. that other users in the file's group have for it (g), and the permissions that other users not in the file's
  134. group have for it (o). 
  135.  
  136. A numeric mode is from one to four octal digits (0-7), derived by adding up the bits with values 4,
  137. 2, and 1. Any omitted digits are assumed to be leading zeros. The first digit selects the set user ID
  138. (4) and set group ID (2) and save text image (1) attributes. The second digit selects permissions for
  139. the user who owns the file: read (4), write (2), and execute (1); the third selects permissions for
  140. other users in the file's group, with the same values; and the fourth for other users not in the file's
  141. group, with the same values. 
  142.  
  143. chmod never changes the permissions of symbolic links; the chmod system call cannot change their
  144. permissions. This is not a problem since the permissions of symbolic links are never used. However,
  145. for each symbolic link listed on the command line, chmod changes the permissions of the pointedto
  146. file. In contrast, chmod ignores symbolic links encountered during recursive directory traversals. 
  147.  
  148. OPTIONS
  149. -c, --changes
  150. Verbosely describe only files whose permissions actually change. 
  151.  
  152. -f, --silent, --quiet
  153.      Do not print error messages about files whose permissions cannot be changed. 
  154.  
  155. -v, --verbose
  156.      Verbosely describe changed permissions. 
  157.  
  158. -R, --recursive
  159.      Recursively change permissions of directories and their contents. 
  160.  
  161. --help
  162.      Print a usage message on standard output and exit successfully. 
  163.  
  164. --version
  165.      Print version information on standard output then exit successfully. 
  166. clear: clear clears your screen if this is possible. It looks in the environment for the terminal type and then
  167. in /etc/termcap to figure out how to clear the screen.
  168. date: This manual page documents the GNU version of date. date with no arguments prints the current
  169. time and date (in the format of the `%c' directive described below). If given an argument that starts
  170. with a `+', it prints the current time and date in a format controlled by that argument, which has the
  171. same format as the format string passed to the `strftime' function. Except for directives that start with
  172. `%', characters in that string are printed unchanged. 
  173.  
  174. The directives are: 
  175.  
  176.      a literal % 
  177.  
  178.      a newline 
  179.  
  180.      a horizontal tab 
  181.  
  182. Time fields: 
  183.  
  184. %H 
  185.      hour (00..23) 
  186.  
  187. %I 
  188.      hour (01..12) 
  189.  
  190. %k 
  191.      hour ( 0..23) 
  192.  
  193. %l 
  194.      hour ( 1..12) 
  195.  
  196. %M 
  197.      minute (00..59) 
  198.  
  199. %p 
  200.      locale's AM or PM 
  201.  
  202. %r 
  203.      time, 12-hour (hh:mm:ss [AP]M) 
  204.  
  205. %s seconds since 1970-01-01 00:00:00 UTC (a nonstandard extension) 
  206.  
  207. %S 
  208.      second (00..61) 
  209.  
  210. %T 
  211.      time, 24-hour (hh:mm:ss) 
  212.  
  213. %X 
  214.      locale's time representation (%H:%M:%S) 
  215.  
  216. %Z time zone (e.g., EDT), or nothing if no time zone is determinable 
  217.  
  218. Date fields: 
  219.  
  220. %a 
  221.      locale's abbreviated weekday name (Sun..Sat) 
  222.  
  223. %A locale's full weekday name, variable length (Sunday..Saturday) 
  224.  
  225. %b 
  226.      locale's abbreviated month name (Jan..Dec) 
  227.  
  228. %B locale's full month name, variable length (January..December) 
  229.  
  230. %c 
  231.      locale's date and time (Sat Nov 04 12:02:33 EST 1989) 
  232.  
  233. %d 
  234.      day of month (01..31) 
  235.  
  236. %D 
  237.      date (mm/dd/yy) 
  238.  
  239. %h 
  240.      same as %b 
  241.  
  242. %j 
  243.      day of year (001..366) 
  244.  
  245. %m 
  246.      month (01..12) 
  247.  
  248. %U week number of year with Sunday as first day of week (00..53) 
  249.  
  250. %w 
  251.      day of week (0..6) with 0 corresponding to Sunday 
  252.  
  253. %W week number of year with Monday as first day of week (00..53) 
  254.  
  255. %x 
  256.      locale's date representation (mm/dd/yy) 
  257.  
  258. %y 
  259.      last two digits of year (00..99) 
  260.  
  261. %Y 
  262.      year (1970...) 
  263.  
  264. By default, date pads numeric fields with zeroes. GNU date recognizes the following nonstandard
  265. numeric modifiers: 
  266.  
  267.      (hyphen) do not pad the field 
  268.  
  269.      (underscore) pad the field with spaces 
  270.  
  271. If given an argument that does not start with `+', date sets the system clock to the time and date
  272. specified by that argument. The argument must consist entirely of digits, which have the following
  273. meaning: 
  274.  
  275. MM month 
  276.  
  277. DD 
  278.      day within month 
  279.  
  280. hh hour 
  281.  
  282. mm minute 
  283.  
  284. CC 
  285.      first two digits of year (optional) 
  286.  
  287. YY 
  288.      last two digits of year (optional) 
  289.  
  290. ss 
  291.      second (optional) 
  292.  
  293. Only the superuser can set the system clock. 
  294.  
  295. OPTIONS
  296. -d datestr, --date datestr
  297. Display the time and date specified in datestr, which can be in almost any common format. The
  298. display is in the default output format, or if an argument starting with `+' is given to date, in the
  299. format specified by that argument. 
  300.  
  301. --help
  302.      Print a usage message on standard output and exit successfully. 
  303.  
  304. -s datestr, --set datestr
  305.      Set the time and date to datestr, which can be in almost any common format. It can contain
  306.      month names, timezones, `am' and `pm', etc. 
  307.  
  308. -u, --universal
  309.      Print or set the time and date in Coordinated Universal Time (also known as Greenwich
  310.      Mean Time) instead of in local (wall clock) time. 
  311.  
  312. --version
  313.      Print version information on standard output then exit successfully.
  314. find: find recursively descends the directory hierarchy for each pathname in the pathname-list, seeking
  315. files that match a logical expression written using the operators listed below. 
  316.  
  317. find does not follow symbolic links to other files or directories; it applies the selection criteria to the
  318. symbolic links themselves, as if they were ordinary files (see ln(1V) for a description of symbolic
  319. links). 
  320.  
  321. If the fast-find feature is enabled, find displays pathnames in which a filename component occurs. 
  322.  
  323. USAGE
  324.  
  325. Operators
  326. In the descriptions, the argument n is used as a decimal integer where +n means more than n, -n
  327. means less than n, and n means exactly n. 
  328.  
  329. -fstype type 
  330.      True if the filesystem to which the file belongs is of type type, where type is typically 4.2 or
  331.      nfs. 
  332.  
  333. -name filename True if the 
  334.      filename argument matches the current file name. Shell argument syntax can be used if
  335.      escaped (watch out for [, ? and *). 
  336.  
  337. -perm onum 
  338.      True if the file permission flags exactly match the octal number onum (see chmod(1V)). If
  339.      onum is prefixed by a minus sign, more flag bits (017777, see chmod(1V)) become
  340.      significant and the flags are compared: (flags&onum)==onum. 
  341.  
  342. -prune 
  343.      Always yields true. Has the side effect of pruning the search tree at the file. That is, if the
  344.      current path name is a directory, find will not descend into that directory. 
  345.  
  346. -type c 
  347.      True if the type of the file is c, where c is one of: 
  348.  
  349.      for block special file c 
  350.  
  351.      for character special file 
  352.  
  353.      for directory 
  354.  
  355.      for plain file 
  356.  
  357.      for named pipe (FIFO) 
  358.  
  359.      for symbolic link 
  360.  
  361.      for socket 
  362.  
  363. -links n 
  364.      True if the file has n links. 
  365.  
  366. -user uname 
  367.      True if the file belongs to the user uname. If uname is numeric and does not appear as a
  368.      login name in the /etc/passwd database, it is taken as a user ID. 
  369.  
  370. -nouser 
  371.      True if the file belongs to a user not in the /etc/passwd database. 
  372.  
  373. -group gname 
  374.      True if the file belongs to group gname. If gname is numeric and does not appear as a login
  375.      name in the /etc/group database, it is taken as a group ID. 
  376.  
  377. -nogroup 
  378.      True if the file belongs to a group not in the /etc/group database. 
  379.  
  380. -size n 
  381.      True if the file is n blocks long (512 bytes per block). If n is followed by a c, the size is in
  382.      characters. 
  383.  
  384. -inum n 
  385.      True if the file has inode number n. 
  386.  
  387. -atime n 
  388.      True if the file has been accessed in n days. Note: the access time of directories in
  389.      path-name-list is changed by find itself. 
  390.  
  391. -mtime n 
  392.      True if the file has been modified in n days. 
  393.  
  394. -ctime n 
  395.      True if the file has been changed in n days. "Changed" means either that the file has been
  396.      modified or some attribute of the file (its owner, its group, the number of links to it, etc.) has
  397.      been changed. 
  398.  
  399. -exec command 
  400.      True if the executed command returns a zero value as exit status. The end of command must
  401.      be punctuated by an escaped semicolon. A command argument {} is replaced by the current
  402.      pathname. 
  403.  
  404. -ok command 
  405.      Like -exec except that the generated command is written on the standard output, then the
  406.      standard input is read and the command executed only upon response y. 
  407.  
  408. -print 
  409.      Always true; the current pathname is printed. 
  410.  
  411. -ls 
  412.      Always true; prints current pathname together with its associated statistics. These include
  413.      (respectively) inode number, size in kilobytes (1024 bytes), protection mode, number of hard
  414.      links, user, group, size in bytes, and modification time. If the file is a special file the size field
  415.      will instead contain the major and minor device numbers. If the file is a symbolic link the
  416.      pathname of the linked-to file is printed preceded by `->'. The format is identical to that of ls
  417.      -gilds (see ls(1V)). Note: formatting is done internally, without executing the ls program. 
  418.  
  419. -cpio device 
  420.      Always true; write the current file on device in cpio(5) format (5120-byte records). 
  421.  
  422. -ncpio device 
  423.      Always true; write the current file on device in cpio -c format (5120-byte records). 
  424.  
  425. -newer file 
  426.      True if the current file has been modified more recently than the argument filename. 
  427.  
  428. -xdev 
  429.      Always true; find does not traverse down into a file system different from the one on which
  430.      current argument pathname resides. 
  431.  
  432. -depth 
  433.      Always true; find descends the directory hierarchy, acting on the entries in a directory before
  434.      acting on the directory itself. This can be useful when find is used with cpio to transfer files
  435.      that are contained in directories without write permission. 
  436.  
  437. (expression) 
  438.      True if the parenthesized expression is true. Note: Parentheses are special to the shell and
  439.      must be escaped. 
  440.  
  441. !primary 
  442.      True if the primary is false (! is the unary not operator). 
  443.  
  444. primary1 [ -a ] primary2
  445. True if both primary1 and primary2 are true. The -a is not required. It is implied by the
  446. juxtaposition of two primaries. 
  447.  
  448. primary1 -o primary2
  449. True if either primary1 or primary2 is true (-o is the or operator). 
  450.  
  451. Fast-Find
  452. The fast-find feature is enabled by the presence of the find.codes database in /usr/lib/find. You must
  453. be root to build or update this database by running the updatedb script in that same directory. You
  454. may wish to modify the updatedb script to suit your needs. 
  455.  
  456. An alternate database can be specified by setting the FCODES environment variable.
  457. cp: cp copies the contents of filename1 onto filename2. The mode and owner of filename2 are
  458. preserved if it already existed; the mode of the source file is used otherwise. If filename1 is a
  459. symbolic link, or a duplicate hard link, the contents of the file that the link refers to are copied; links
  460. are not preserved. 
  461.  
  462. In the second form, cp recursively copies directory1, along with its contents and subdirectories, to
  463. directory2. If directory2 does not exist, cp creates it and duplicates the files and subdirectories of
  464. directory1 within it. If direc_tory2 does exist, cp makes a copy of the directory1 directory within
  465. directory2 (as a subdirectory), along with its files and subdirectories. 
  466.  
  467. In the third form, each filename is copied to the indicated directory; the basename of the copy
  468. corresponds to that of the original. The destination directory must already exist for the copy to
  469. succeed. 
  470.  
  471. cp refuses to copy a file onto itself.
  472. finger: By default, finger displays information about each logged-in user, including his or her: login name, full
  473. name, terminal name (prepended with a `*' if write-permission is denied), idle time, login time, and
  474. location (comment field in /etc/ttytab for users logged in locally, hostname for users logged in
  475. remotely) if known. 
  476.  
  477. Idle time is minutes if it is a single integer, hours and minutes if a `:' is present, or days and hours if a
  478. d is present. 
  479.  
  480. When one or more name arguments are given, more detailed information is given for each name
  481. specified, whether they are logged in or not. A name may be a first or last name, or an account
  482. name. Information is presented in a multiline format, and includes, in addition to the information
  483. mentioned above:
  484. the user's home directory and login shell the time they logged in if they are currently logged in, or the
  485. time they last logged in if they are not, as well as the terminal or host from which they logged in and,
  486. if a terminal, the comment field in /etc/ttytab for that terminal
  487. the last time they received mail, and the last time they read their mail
  488. any plan contained in the file .plan in the user's home directory
  489. and any project on which they are working described in the file .project (also in that directory) 
  490.  
  491. If a name argument contains an at-sign, `@', then a connection is attempted to the machine named
  492. after the at-sign, and the remote finger daemon is queried. The data returned by that daemon is
  493. printed. If a long format printout is to be produced, finger passes the -l option to the remote finger
  494. daemon over the network using the /W feature of the protocol (see NAME/FINGER Protocol).
  495. grep: Grep searches the named input files (or standard input if no files are named, or the file name - is
  496. given) for lines containing a match to the given pattern. By default, grep prints the matching lines. 
  497.  
  498. There are three major variants of grep, controlled by the following options.
  499. -G Interpret pattern as a basic regular expression (see below). This is the default.
  500. -E Interpret pattern as an extended regular expression (see below).
  501.  
  502. -F 
  503.      Interpret pattern as a list of fixed strings, separated by newlines, any of which is to be
  504.      matched. In addition, two variant programs egrep and fgrep are available. Egrep is similiar
  505.      (but not identical) to grep -E, and is compatible with the historical Unix egrep. Fgrep is the
  506.      same as grep -F. 
  507.  
  508. All variants of grep understand the following options: -num Matches will be printed with num lines
  509. of leading and trailing context. However, grep will never print any given line more than once.
  510. -A num
  511. Print num lines of trailing context after matching lines.
  512. -B num
  513. Print num lines of leading context before matching lines.
  514.  
  515. -C 
  516.      Equivalent to -2. -V Print the version number of grep to standard error. This version number
  517.      should be included in all bug reports (see below). 
  518.  
  519. -b 
  520.      Print the byte offset within the input file before each line of output. 
  521.  
  522. -c 
  523.      Suppress normal output; instead print a count of matching lines for each input file. With the -v
  524.      option (see below), count non-matching lines. -e pattern Use pattern as the pattern; useful
  525.      to protect patterns beginning with -. -f file Obtain the pattern from file. 
  526.  
  527. -h 
  528.      Suppress the prefixing of filenames on output when multiple files are searched. 
  529.  
  530. -i 
  531.      Ignore case distinctions in both the pattern and the input files. -L Suppress normal output;
  532.      instead print the name of each input file from which no output would normally have been
  533.      printed. -l Suppress normal output; instead print the name of each input file from which output
  534.      would normally have been printed. -n Prefix each line of output with the line number within its
  535.      input file. 
  536.  
  537. -q 
  538.      Quiet; suppress normal output. 
  539.  
  540. -s 
  541.      Suppress error messages about nonexistent or unreadable files. -v Invert the sense of
  542.      matching, to select non-matching lines. -w Select only those lines containing matches that
  543.      form whole words. The test is that the matching substring must either be at the beginning of
  544.      the line, or preceded by a non-word constituent character. Similarly, it must be either at the
  545.      end of the line or followed by a non-word constituent character. Word-constituent characters
  546.      are letters, digits, and the underscore. -x Select only those matches that exactly match the
  547.      whole line.
  548. kill: kill sends the TERM (terminate, 15) signal to the processes with the specified pids. If a signal name
  549. or number preceded by `-' is given as first argument, that signal is sent instead of terminate. The
  550. signal names are listed by using the -l option, and are as given in <signal.h>, stripped of the common
  551. SIG prefix. 
  552.  
  553. The terminate signal will kill processes that do not catch the signal, so `kill -9 ...' is a sure kill, as the
  554. KILL (9) signal cannot be caught. By convention, if process number 0 is specified, all members in
  555. the process group (that is, processes resulting from the current login) are signaled (but beware: this
  556. works only if you use sh(1); not if you use csh(1).) Negative process numbers also have special
  557. meanings; see kill(2V) for details. The killed processes must belong to the current user unless he is
  558. the super-user. 
  559.  
  560. To shut the system down and bring it up single user the super-user may send the initialization
  561. process a TERM (terminate) signal by `kill 1'; see init(8). To force init to close and open terminals
  562. according to what is currently in /etc/ttytab use `kill -HUP 1' (sending a hangup signal to process 1).
  563.  
  564. The shell reports the process number of an asynchronous process started with `&' (run in the
  565. background). Process numbers can also be found by using ps(1). 
  566.  
  567. kill is built in to csh(1); it allows job specifiers, such as `kill % ...', in place of kill arguments. See
  568. csh(1) for details.
  569. less: Less is a program similar to more (1), but which allows backwards movement in the file as well as
  570. forward movement. Also, less does not have to read the entire input file before starting, so with
  571. large input files it starts up faster than text editors like vi (1). Less uses termcap (or terminfo on
  572. some systems), so it can run on a variety of terminals. There is even limited support for hardcopy
  573. terminals. (On a hardcopy terminal, lines which should be printed at the top of the screen are
  574. prefixed with an uparrow.) 
  575.  
  576. Commands are based on both more and vi. Commands may be preceeded by a decimal number,
  577. called N in the descriptions below. The number is used by some commands, as indicated.
  578. In the following descriptions, ^X means control-X. ESC stands for the ESCAPE key; for example
  579. ESC-v means the two character sequence "ESCAPE", then "v". 
  580.  
  581.      Help: display a summary of these commands. If you forget all the other commands, remember
  582.      this one. 
  583.  
  584. SPACE or f or ^F or ^V
  585. Scroll forward N lines, default one window (see option -z below). If N is more than the screen size,
  586. only the final screenful is displayed. Warning: some systems use ^V as a special literalization
  587. character. 
  588.  
  589. b or ^B or ESC-v
  590. Scroll backward N lines, default one window (see option -z below). If N is more than the screen
  591. size, only the final screenful is displayed. 
  592.  
  593. RETURN or ^N or e or ^E or j or ^J
  594. Scroll forward N lines, default 1. The entire N lines are displayed, even if N is more than the screen
  595. size. 
  596.  
  597. y or ^Y or ^P or k or ^K
  598. Scroll backward N lines, default 1. The entire N lines are displayed, even if N is more than the
  599. screen size. Warning: some systems use ^Y as a special job control character. 
  600.  
  601. d or ^D
  602. Scroll forward N lines, default one half of the screen size. If N is specified, it becomes the new
  603. default for subsequent d and u commands. 
  604.  
  605. u or ^U
  606. Scroll backward N lines, default one half of the screen size. If N is specified, it becomes the new
  607. default for subsequent d and u commands. 
  608.  
  609. r or ^R or ^L
  610. Repaint the screen. 
  611.  
  612.      Repaint the screen, discarding any buffered input. Useful if the file is changing while it is being
  613.      viewed. 
  614.  
  615. g or < or ESC-<
  616. Go to line N in the file, default 1 (beginning of file). (Warning: this may be slow if N is large.) 
  617.  
  618. G or > or ESC->
  619. Go to line N in the file, default the end of the file. (Warning: this may be slow if N is large, or if N is
  620. not specified and standard input, rather than a file, is being read.) 
  621.  
  622. p or %
  623. Go to a position N percent into the file. N should be between 0 and 100. (This works if standard
  624. input is being read, but only if less has already read to the end of the file. It is always fast, but not
  625. always useful.) 
  626.  
  627.      Followed by any lowercase letter, marks the current position with that letter. 
  628.  
  629.      (Single quote.) Followed by any lowercase letter, returns to the position which was
  630.      previously marked with that letter. Followed by another single quote, returns to the postion at
  631.      which the last "large" movement command was executed. All marks are lost when a new file
  632.      is examined. 
  633.  
  634. ^X^X Same as single quote. 
  635.  
  636. /pattern
  637. Search forward in the file for the N-th line containing the pattern. N defaults to 1. The pattern is a
  638. regular expression, as recognized by ed. The search starts at the second line displayed (but see the
  639. -a option, which changes this). 
  640.  
  641. ?pattern
  642. Search backward in the file for the N-th line containing the pattern. The search starts at the line
  643. immediately before the top line displayed. 
  644.  
  645. /!pattern
  646. Like /, but the search is for the N-th line which does NOT contain the pattern. 
  647.  
  648. ?!pattern
  649. Like ?, but the search is for the N-th line which does NOT contain the pattern. 
  650.  
  651.      Repeat previous search, for N-th line containing the last pattern (or NOT containing the last
  652.      pattern, if the previous search was /! or ?!). 
  653.  
  654. E [filename]
  655. Examine a new file. If the filename is missing, the "current" file (see the N and P commands below)
  656. from the list of files in the command line is re-examined. If the filename is a pound sign (#), the
  657. previously examined file is re-examined. 
  658.  
  659. ^X^V or :e
  660. Same as E. Warning: some systems use ^V as a special literalization character. 
  661.  
  662. N or :n
  663. Examine the next file (from the list of files given in the command line). If a number N is specified (not
  664. to be confused with the command N), the N-th next file is examined. 
  665.  
  666. P or :p
  667. Examine the previous file. If a number N is specified, the N-th previous file is examined. 
  668.  
  669. = or ^G
  670. Prints some information about the file being viewed, including its name and the line number and byte
  671. offset of the bottom line being displayed. If possible, it also prints the length of the file and the
  672. percent of the file above the last displayed line. 
  673.  
  674.      Followed by one of the command line option letters (see below), this will change the setting
  675.      of that option and print a message describing the new setting. If the option letter has a
  676.      numeric value (such as -b or -h), or a string value (such as -P or -t), a new value may be
  677.      entered after the option letter. 
  678.  
  679.      (Underscore.) Followed by one of the command line option letters (see below), this will print
  680.      a message describing the current setting of that option. The setting of the option is not
  681.      changed. 
  682.  
  683. +cmd Causes the specified cmd to be executed each time a new
  684.      file is examined. For example, +G causes less to initially display each file starting at the end
  685.      rather than the beginning. 
  686.  
  687.      Prints the version number of less being run. 
  688.  
  689. q or :q or ZZ
  690. Exits less. 
  691.  
  692. The following two commands may or may not be valid, depending on your particular installation. 
  693.  
  694.      Invokes an editor to edit the current file being viewed. The editor is taken from the
  695.      environment variable EDITOR, or defaults to "vi". 
  696.  
  697. ! shell-command
  698. Invokes a shell to run the shell-command given. A percent sign in the command is replaced by the
  699. name of the current file. "!!" repeats the last shell command. "!" with no shell command simply
  700. invokes a shell. In all cases, the shell is taken from the environment variable SHELL, or defaults to
  701. "sh".
  702. logout: Built-in commands are executed within the C shell. If a built-in command occurs as any component
  703. of a pipeline except the last, it is executed in a subshell. 
  704.  
  705.      Null command. This command is interpreted, but performs no action. 
  706.  
  707. alias [ name [ def ] ]
  708. Assign def to the alias name. def is a list of words that may contain escaped historysubstitution
  709. metasyntax. name is not allowed to be alias or unalias. If def is omitted, the alias name is displayed
  710. along with its current definition. If both name and def are omitted, all aliases are displayed. 
  711.  
  712. bg [%job] ...
  713. Run the current or specified jobs in the background. 
  714.  
  715. break 
  716.      Resume execution after the end of the nearest enclosing foreach or while loop. The remaining
  717.      commands on the current line are executed. This allows multilevel breaks to be written as a
  718.      list of break commands, all on one line. 
  719.  
  720. breaksw 
  721.      Break from a switch, resuming after the endsw. 
  722.  
  723. case label:
  724. A label in a switch statement. 
  725.  
  726. cd [ dir ]
  727. chdir [ dir ]
  728. Change the shell's working directory to directory dir. If no argument is given, change to the home
  729. directory of the user. If dir is a relative pathname not found in the current directory, check for it in
  730. those directories listed in the cdpath variable. If dir is the name of a shell variable whose value starts
  731. with a /, change to the directory named by that value. 
  732.  
  733. continue Continue execution of the nearest enclosing while or foreach. 
  734.  
  735. default: Labels the default case in a switch statement. The default should come after all case labels.
  736. Any remaining commands on the command line are first executed. 
  737.  
  738. dirs [ -l ]
  739. Print the directory stack, most recent to the left; the first directory shown is the current directory.
  740. With the -l argument, produce an unabbreviated printout; use of the ~ notation is suppressed. 
  741.  
  742. echo [ -n ] list
  743. The words in list are written to the shell's standard output, separated by SPACE characters. The
  744. output is terminated with a NEWLINE unless the -n option is used. 
  745.  
  746. eval argument ...
  747. Reads the arguments as input to the shell, and executes the resulting command(s). This is usually
  748. used to execute commands generated as the result of command or variable substitution, since
  749. parsing occurs before these substitutions. See tset(1) for an example of how to use eval. 
  750.  
  751. exec command
  752. Execute command in place of the current shell, which terminates. 
  753.  
  754. exit [ (expr) ]
  755. The shell exits, either with the value of the status variable, or with the value of the specified by the
  756. expression expr. 
  757.  
  758. fg % [ job ]
  759. Bring the current or specified job into the foreground. 
  760.  
  761. foreach var (wordlist)
  762. ...
  763.  
  764. end 
  765.      The variable var is successively set to each member of wordlist. The sequence of commands
  766.      between this command and the matching end is executed for each new value of var. (Both
  767.      foreach and end must appear alone on separate lines.) 
  768.  
  769. The built-in command continue may be used to continue the loop prematurely and the built-in
  770. command break to terminate it prematurely. When this command is read from the terminal, the loop
  771. is read up once prompting with ? before any statements in the loop are executed. 
  772.  
  773. glob wordlist
  774. Perform filename expansion on wordlist. Like echo, but no \ escapes are recognized. Words are
  775. delimited by null characters in the output. 
  776.  
  777. goto label
  778. The specified label is filename and command expanded to yield a label. The shell rewinds its input
  779. as much as possible and searches for a line of the form label: possibly preceded by SPACE or
  780. TAB characters. Execution continues after the indicated line. It is an error to jump to a label that
  781. occurs between a while or for built-in, and its corresponding end. 
  782.  
  783. hashstat Print a statistics line indicating how effective the internal hash table has been at locating
  784. commands (and avoiding execs). An exec is attempted for each component of the path where the
  785. hash function indicates a possible hit, and in each component that does not begin with a `/'. 
  786.  
  787. history [ -hr ] [ n ]
  788. Display the history list; if n is given, display only the n most recent events. 
  789.  
  790. -r 
  791.      Reverse the order of printout to be most recent first rather than oldest first. -h Display the
  792.      history list without leading numbers. This is used to produce files suitable for sourcing using
  793.      the -h option to source. 
  794.  
  795. if (expr) command
  796. If the specified expression evaluates to true, the single command with arguments is executed.
  797. Variable substitution on command happens early, at the same time it does for the rest of the if
  798. command. command must be a simple command, not a pipeline, a command list, or a parenthesized
  799. command list. Note: I/O redirection occurs even if expr is false, when command is not executed
  800. (this is a bug). 
  801.  
  802. if (expr) then
  803. ...
  804. else if (expr2) then ...
  805. else
  806. ...
  807.  
  808. endif 
  809.      If expr is true, commands up to the first else are executed. Otherwise, if expr2 is true, the
  810.      commands between the else if and the second else are executed. Otherwise, commands
  811.      between the else and the endif are executed. Any number of else if pairs are allowed, but only
  812.      one else. Only one endif is needed, but it is required. The words else and endif must be the
  813.      first nonwhite characters on a line. The if must appear alone on its input line or after an else.) 
  814.  
  815. jobs[ -l ]
  816. List the active jobs under job control. 
  817.  
  818. -l 
  819.      List process IDs, in addition to the normal information. 
  820.  
  821. kill [ -sig ] [ pid ] [ %job ] ...
  822. kill -l Send the TERM (terminate) signal, by default, or the signal specified, to the specified process
  823. ID, the job indicated, or the current job. Signals are either given by number or by name. There is no
  824. default. Typing kill does not send a signal to the current job. If the signal being sent is TERM
  825. (terminate) or HUP (hangup), then the job or process is sent a CONT (continue) signal as well. 
  826.  
  827. -l 
  828.      List the signal names that can be sent. 
  829.  
  830. limit [ -h ] [ resource [ max-use ] ] Limit the consumption by the current process or any process it
  831. spawns, each not to exceed max-use on the specified resource. If max-use is omitted, print the
  832. current limit; if resource is omitted, display all limits. 
  833.  
  834. -h 
  835.      Use hard limits instead of the current limits. Hard limits impose a ceiling on the values of the
  836.      current limits. Only the super-user may raise the hard limits. 
  837.  
  838. resource is one of: 
  839.  
  840. cputime 
  841.      Maximum CPU seconds per process. 
  842.  
  843. filesize 
  844.      Largest single file allowed. 
  845.  
  846. datasize 
  847.      Maximum data size (including stack) for the process. 
  848.  
  849. stacksize 
  850.      Maximum stack size for the 
  851.  
  852. process.
  853. coredumpsize Maximum size of a core dump (file).
  854. descriptors Maximum value for a file descriptor. 
  855.  
  856. max-use is a number, with an optional scaling factor, as follows: 
  857.  
  858. nh 
  859.      Hours (for cputime). 
  860.  
  861. nk 
  862.      n kilobytes. This is the default for all but cputime. 
  863.  
  864. nm 
  865.      n megabytes or minutes (for cputime). 
  866.  
  867. mm:ss 
  868.      Minutes and seconds (for cputime). 
  869.  
  870. login [ username|-p ]
  871. Terminate a login shell and invoke login(1). The .logout file is not processed. If username is omitted,
  872. login prompts for the name of a user. 
  873.  
  874. -p 
  875.      Preserve the current environment (variables). 
  876.  
  877. logout 
  878.      Terminate a login shell. 
  879.  
  880. nice [ +n|-n ] [ command ]
  881. Increment the process priority value for the shell or for command by n. The higher the priority
  882. value, the lower the priority of a process, and the slower it runs. When given, command is always
  883. run in a subshell, and the restrictions placed on commands in simple if commands apply. If
  884. command is omitted, nice increments the value for the current shell. If no increment is specified, nice
  885. sets the nice value to 4. The range of nice values is from -20 through 19. Values of n outside this
  886. range set the value to the lower, or to the higher boundary, respectively. 
  887.  
  888. +n 
  889.      Increment the process priority value by n. 
  890.  
  891. -n 
  892.      Decrement by n. This argument can be used only by the super-user. 
  893.  
  894. nohup [ command ]
  895. Run command with HUPs ignored. With no arguments, ignore HUPs throughout the remainder of a
  896. script. When given, command is always run in a subshell, and the restrictions placed on commands
  897. in simple if commands apply. All processes detached with & are effectively nohup'd. 
  898.  
  899. notify [ %job ] ...
  900. Notify the user asynchronously when the status of the current, or of specified jobs, changes. 
  901.  
  902. onintr [ - | label]
  903. Control the action of the shell on interrupts. With no arguments, onintr restores the default action of
  904. the shell on interrupts. (The shell terminates shell scripts and returns to the terminal command input
  905. level). With the - argument, the shell ignores all interrupts. With a label argument, the shell executes
  906. a goto label when an interrupt is received or a child process terminates because it was interrupted. 
  907.  
  908. popd [+n]
  909. Pop the directory stack, and cds to the new top directory. The elements of the directory stack are
  910. numbered from 0 starting at the top. 
  911.  
  912. +n 
  913.      Discard the n'th entry in the stack. 
  914.  
  915. pushd [+n | dir]
  916. Push a directory onto the directory stack. With no arguments, exchange the top two elements. 
  917.  
  918. +n 
  919.      Rotate the n'th entry to the top of the stack and cd to it. dir Push the current working
  920.      directory onto the stack and change to dir. 
  921.  
  922. rehash 
  923.      Recompute the internal hash table of the contents of directories listed in the path variable to
  924.      account for new commands added. 
  925.  
  926. repeat count command
  927. Repeat command count times command is subject to the same restrictions as with the one-line if
  928. statement. 
  929.  
  930. set [var [ = value ] ]
  931. set var[n] = word
  932. With no arguments, set displays the values of all shell variables. Multiword values are displayed as a
  933. parenthesized list. With the var argument alone, set assigns an empty (null) value to the variable var.
  934. With arguments of the form var = value set assigns value to var, where value is one of: 
  935.  
  936. word 
  937.      A single word (or quoted string). (wordlist) A space-separated list of words 
  938.  
  939. enclosed in parentheses. 
  940.  
  941. Values are command and filename expanded before being assigned. The form set var[n] = word
  942. replaces the n'th word in a multiword value with word. 
  943.  
  944. setenv [ VAR [ word ] ]
  945. With no arguments, setenv displays all environment variables. With the VAR argument sets the
  946. environment variable VAR to have an empty (null) value. (By convention, environment variables are
  947. normally given upper-case names.) With both VAR and word arguments setenv sets the
  948. environment variable NAME to the value word, which must be either a single word or a quoted
  949. string. The most commonly used environment variables, USER, TERM, and PATH, are
  950. automatically imported to and exported from the csh variables user, term, and path; there is no need
  951. to use setenv for these. In addition, the shell sets the PWD environment variable from the csh
  952. variable cwd whenever the latter changes. 
  953.  
  954. shift [ variable ]
  955. The components of argv, or variable, if supplied, are shifted to the left, discarding the first
  956. component. It is an error for the variable not to be set, or to have a null value. 
  957.  
  958. source [ -h ] name
  959. Reads commands from name. source commands may be nested, but if they are nested too deeply
  960. the shell may run out of file descriptors. An error in a sourced file at any level terminates all nested
  961. source commands. 
  962.  
  963. -h 
  964.      Place commands from the file name on the history list without executing them. 
  965.  
  966. stop [%job] ...
  967. Stop the current or specified background job. 
  968.  
  969. suspend Stop the shell in its tracks, much as if it had been sent a stop signal with ^Z. This is most
  970. often used to stop shells started by su. 
  971.  
  972. switch (string)
  973. case label:
  974. ...
  975. breaksw
  976. ... default:
  977. ...
  978. breaksw
  979.  
  980. endsw 
  981.      Each label is successively matched, against the specified string, which is first command and
  982.      filename expanded. The file metacharacters *, ? and [...] may be used in the case labels,
  983.      which are variable expanded. If none of the labels match before a "default" label is found,
  984.      execution begins after the default label. Each case statement and the default statement must
  985.      appear at the beginning of a line. The command breaksw continues execution after the endsw.
  986.      Otherwise control falls through subsequent case and default statements as with C. If no label
  987.      matches and there is no default, execution continues after the endsw. 
  988.  
  989. time [ command ]
  990. With no argument, print a summary of time used by this C shell and its children. With an optional
  991. command, execute command and print a summary of the time it uses. 
  992.  
  993. umask [ value ]
  994. Display the file creation mask. With value set the file creation mask. value is given in octal, and is
  995. XORed with the permissions of 666 for files and 777 for directories to arrive at the permissions for
  996. new files. Common values include 002, giving complete access to the group, and read (and
  997. directory search) access to others, or 022, giving read (and directory search) but not write
  998. permission to the group and others. 
  999.  
  1000. unalias pattern
  1001. Discard aliases that match (filename substitution) pattern. All aliases are removed by unalias *. 
  1002.  
  1003. unhash 
  1004.      Disable the internal hash table. 
  1005.  
  1006. unlimit [ -h ] [ resource ]
  1007. Remove a limitation on resource. If no resource is specified, then all resource limitations are
  1008. removed. See the description of the limit command for the list of resource names. 
  1009.  
  1010. -h 
  1011.      Remove corresponding hard limits. Only the super-user may do this. 
  1012.  
  1013. unset pattern
  1014. Remove variables whose names match (filename substitution) pattern. All variables are removed by
  1015. `unset *'; this has noticeably distasteful sideeffects. 
  1016.  
  1017. unsetenv variable
  1018. Remove variable from the environment. Pattern matching, as with unset is not performed. 
  1019.  
  1020. wait 
  1021.      Wait for background jobs to finish (or for an interrupt) before prompting. 
  1022.  
  1023. while (expr)
  1024. ...
  1025.  
  1026. end 
  1027.      While expr is true (evaluates to non-zero), repeat commands between the while and the
  1028.      matching end statement. break and continue may be used to terminate or continue the loop
  1029.      prematurely. The while and end must appear alone on their input lines. If the shell's input is a
  1030.      terminal, it prompts for commands with a question-mark until the end command is entered
  1031.      and then performs the commands in the loop. 
  1032.  
  1033. %[ job ] [ & ]
  1034. Bring the current or indicated job to the foreground. With the ampersand, continue running job in
  1035. the background. 
  1036.  
  1037. @ [ var =expr ]
  1038. @ [ var[n] =expr ]
  1039. With no arguments, display the values for all shell variables. With arguments, the variable var, or the
  1040. n'th word in the value of var, to the value that expr evaluates to. (If [n] is supplied, both var and its
  1041. n'th component must already exist.) 
  1042.  
  1043. If the expression contains the characters >, <, & or |, then at least this part of expr must be placed
  1044. within parentheses. 
  1045.  
  1046. The operators *=, +=, etc., are available as in C. The space separating the name from the
  1047. assignment operator is optional. Spaces are, however, mandatory in separating components of expr
  1048. that would otherwise be single words. 
  1049.  
  1050. Special postfix operators, ++ and -- increment or decrement name, respectively.
  1051. lpq: lpq displays the contents of a printer queue. It reports the status of jobs specified by job#, or all
  1052. jobs owned by the user specified by username. lpq reports on all jobs in the default printer queue
  1053. when invoked with no arguments. 
  1054.  
  1055. For each print job in the queue, lpq reports the user's name, current position, the names of input files
  1056. comprising the job, the job number (by which it is referred to when using lprm(1)) and the total size
  1057. in bytes. Normally, only as much information as will fit on one line is displayed. Jobs are normally
  1058. queued on a first-in-first-out basis. Filenames comprising a job may be unavailable, such as when lpr
  1059. is used at the end of a pipeline; in such cases the filename field indicates ``(standard input)''. 
  1060.  
  1061. If lpq warns that there is no daemon present (that is, due to some malfunction), the lpc(8) command
  1062. can be used to restart a printer daemon.
  1063. -P printer 
  1064.      Display information about the queue for the specified printer. In the absence of the -P
  1065.      option, the queue to the printer specified by the PRINTER variable in the environment is
  1066.      used. If the PRINTER variable isn't set, the queue for the default printer is used. 
  1067.  
  1068. -l 
  1069.      Display queue information in long format; includes the name of the host from which the job
  1070.      originated. 
  1071.  
  1072. +[ interval ]
  1073.      Display the spool queue periodically until it empties. This option clears the terminal screen
  1074.      before reporting on the queue. If an interval is supplied, lpq sleeps that number of seconds in
  1075.      between reports.
  1076. lpr: lpr creates a printer job in a spooling area for subsequent printing as facilities become available.
  1077. Each printer job consists of a control file and one or more data files. The data files are copies of (or,
  1078. with -s , symbolic links to) each filename you specify. The spool area is managed by the line printer
  1079. daemon, lpd(8). Jobs that specify a printer on a remote machine are forwarded by lpd. 
  1080.  
  1081. lpr reads from the standard input if no files are specified.
  1082. -Pprinter 
  1083.      Send output to the named printer. Otherwise send output to the printer named in the
  1084.      PRINTER environment variable, or to the default printer, lp. 
  1085.  
  1086. -#copies 
  1087.      Produce the number of copies indicated for each named file. For example: 
  1088.  
  1089. example% lpr -#3 index.c lookup.c 
  1090.  
  1091. produces three copies of index.c, followed by three copies of lookup.c. On the other hand, 
  1092.  
  1093. example% cat index.c lookup.c | lpr -#3 
  1094.  
  1095. generates three copies of the concatenation of the files. 
  1096.  
  1097. -Cclass 
  1098.      Print class as the job classification on the burst page. For example, 
  1099.  
  1100. example% lpr -C Operations new.index.c 
  1101.  
  1102. replaces the system name (the name returned by hostname) with "Operations" on the burst page,
  1103. and prints the file new.index.c. 
  1104.  
  1105. -Jjob 
  1106.      Print job as the job name on the burst page. Normally, lpr uses the first file's name. 
  1107.  
  1108. -Ttitle 
  1109.      Use title instead of the file name for the 
  1110.  
  1111. title used by pr(1V). 
  1112.  
  1113. -i[ indent ] 
  1114.      Indent output indent SPACE characters. Eight SPACE characters is the default. The indent
  1115.      is passed to the input filter. If no input filter is present, this option is ignored. -1 font -2 font
  1116.      -3 font 
  1117.  
  1118. -4 font 
  1119.      Mount the specified font on font position 1, 2, 3 or 4. The daemon will construct a .railmag
  1120.      file in the spool directory that indicates the mount by referencing /usr/lib/vfont/font. 
  1121.  
  1122. -wcols 
  1123.      Use cols as the page width for pr. 
  1124.  
  1125. -r 
  1126.      Remove the file upon completion of spooling, or upon completion of printing with the -s
  1127.      option. 
  1128.  
  1129. -m 
  1130.      Send mail upon completion. 
  1131.  
  1132. -h 
  1133.      Suppress printing the burst page. 
  1134.  
  1135. -s 
  1136.      Create a symbolic link from the spool area to the data files rather than trying to copy them (so
  1137.      large files can be printed). This means the data files should not be modified or removed until
  1138.      they have been printed. This option can be used to avoid truncating files larger than the
  1139.      maximum given in the mx capability of the printcap(5) entry. -s only prevents copies of local
  1140.      files from being made. Jobs from remote hosts are copied anyway. -s only works with named
  1141.      data files; if the lpr command is at the end of a pipeline, the data is copied to the spool. 
  1142.  
  1143. filter-option The following single letter options notify the line printer spooler that the files are not
  1144. standard text files. The spooling daemon will use the appropriate filters to print the data accordingly.
  1145.  
  1146. -p 
  1147.      Use pr to format the files (lpr -p is very much like `pr | lpr'). -l Print control characters and
  1148.      suppress page breaks. -t The files contain troff(1) (cat phototypesetter) binary data. -n The
  1149.      files contain data from ditroff (device independent troff). -d The files contain data from tex
  1150.      (DVI format from Stanford). -g The files contain standard plot data as produced by the
  1151.      plot(3X) routines (see also plot(1G) for the filters used by the printer spooler). -v The files
  1152.      contain a raster image, see rasterfile(5). The printer must support an appropriate imaging
  1153.      model such as PostScript in order to print the image. -c The files contain data produced by
  1154.      cifplot. -f Interpret the first character of each line as a standard FORTRAN carriage control
  1155.      character. 
  1156.  
  1157. If no filter-option is given (and the printer can interpret PostScript), the string `%!' as the first two
  1158. characters of a file indicates that it contains PostScript commands. 
  1159.  
  1160. These filter options offer a standard user interface, and all options may not be available for, nor
  1161. applicable to, all printers.
  1162. lprm: lprm removes a job or jobs from a printer's spooling queue. Since the spool directory is protected
  1163. from users, using lprm is normally the only method by which a user can remove a job. 
  1164.  
  1165. Without any arguments, lprm deletes the job that is currently active, provided that the user who
  1166. invoked lprm owns that job. 
  1167.  
  1168. When the super-user specifies a username, lprm removes all jobs belonging to that user. 
  1169.  
  1170. You can remove a specific job by supplying its job number as an argument, which you can obtain
  1171. using lpq(1). For example: 
  1172.  
  1173. example% lpq -Phost
  1174. host is ready and printing
  1175. Rank Owner Job Files Total Size active wendy 385 standard input 35501 bytes example% lprm
  1176. -Phost 385 
  1177.  
  1178. lprm reports the names of any files it removes, and is silent if there are no applicable jobs to remove.
  1179.  
  1180. lprm kills the active printer daemon, if necessary, before removing spooled jobs; it restarts the
  1181. daemon when through.
  1182. -Pprinter 
  1183.      Specify the queue associated with a specific printer. Otherwise the value of the PRINTER
  1184.      variable in the environment is used. If this variable is unset, the queue for the default printer is
  1185.      used. 
  1186.  
  1187.      Remove all jobs owned by you. If invoked by the super-user, all jobs in the spool are
  1188.      removed. (Job ownership is determined by the user's login name and host name on the
  1189.      machine where the lpr command was invoked).
  1190. ls: -a, --all
  1191. List all files in directories, including all files that start with `.'. 
  1192.  
  1193. -b, --escape
  1194.      Quote nongraphic characters in file names using alphabetic and octal backslash sequences
  1195.      like those used in C. 
  1196.  
  1197. -c, --time=ctime, --time=status
  1198.      Sort directory contents according to the files' status change time instead of the modification
  1199.      time. If the long listing format is being used, print the status change time instead of the
  1200.      modification time. 
  1201.  
  1202. -d, --directory
  1203.      List directories like other files, rather than listing their contents. 
  1204.  
  1205. -f 
  1206.      Do not sort directory contents; list them in whatever order they are stored on the disk. The
  1207.      same as enabling -a and -U and disabling -l, -s, and -t. 
  1208.  
  1209. --full-time
  1210.      List times in full, rather than using the standard abbreviation heuristics. 
  1211.  
  1212. -g 
  1213.      Ignored; for Unix compatibility. 
  1214.  
  1215. -i, --inode
  1216.      Print the index number of each file to the left of the file name. 
  1217.  
  1218. -k, --kilobytes
  1219.      If file sizes are being listed, print them in kilobytes. This overrides the environment variable
  1220.      POSIXLY_CORRECT. 
  1221.  
  1222. -l, --format=long, --format=verbose
  1223.      In addition to the name of each file, print the file type, permissions, number of hard links,
  1224.      owner name, group name, size in bytes, and timestamp (the modification time unless other
  1225.      times are selected). For files with a time that is more than 6 months old or more than 1 hour
  1226.      into the future, the timestamp contains the year instead of the time of day. 
  1227.  
  1228. -m, --format=commas
  1229.      List files horizontally, with as many as will fit on each line, separated by commas. 
  1230.  
  1231. -n, --numeric-uid-gid
  1232.      List the numeric UID and GID instead of the names. 
  1233.  
  1234. -p 
  1235.      Append a character to each file name indicating the file type. 
  1236.  
  1237. -q, --hide-control-chars
  1238.      Print question marks instead of nongraphic characters in file names. 
  1239.  
  1240. -r, --reverse
  1241.      Sort directory contents in reverse order. 
  1242.  
  1243. -s, --size
  1244.      Print the size of each file in 1K blocks to the left of the file name. If the environment variable
  1245.      POSIXLY_CORRECT is set, 512-byte blocks are used instead. 
  1246.  
  1247. -t, --sort=time
  1248.  
  1249. Sort directory contents by timestamp instead of alphabetically, with the newest files listed first. 
  1250.  
  1251. -u, --time=atime, --time=access, --time=use
  1252.      Sort directory contents according to the files' last access time instead of the modification time.
  1253.      If the long listing format is being used, print the last access time instead of the modification
  1254.      time. 
  1255.  
  1256. -x, --format=across, --format=horizontal
  1257.      List the files in columns, sorted horizontally. 
  1258.  
  1259. -A, --almost-all
  1260.      List all files in directories, except for `.' and `..'. 
  1261.  
  1262. -B, --ignore-backups
  1263.      Do not list files that end with `~', unless they are given on the command line. 
  1264.  
  1265. -C, --format=vertical
  1266.      List files in columns, sorted vertically. 
  1267.  
  1268. -F, --classify
  1269.      Append a character to each file name indicating the file type. For regular files that are
  1270.      executable, append a `*'. The file type indicators are `/' for directories, `@' for symbolic
  1271.      links, `|' for FIFOs, `=' for sockets, and nothing for regular files. 
  1272.  
  1273. -G, --no-group
  1274.      Inhibit display of group information in a long format directory listing. 
  1275.  
  1276. -L, --dereference
  1277.      List the files linked to by symbolic links instead of listing the contents of the links. 
  1278.  
  1279. -N, --literal
  1280.      Do not quote file names. 
  1281.  
  1282. -Q, --quote-name
  1283.      Enclose file names in double quotes and quote nongraphic characters as in C. 
  1284.  
  1285. -R, --recursive
  1286.      List the contents of all directories recursively. 
  1287.  
  1288. -S, --sort=size
  1289.      Sort directory contents by file size instead of alphabetically, with the largest files listed first. 
  1290.  
  1291. -U, --sort=none
  1292.  
  1293. Do not sort directory contents; list them in whatever order they are stored on the disk. This option is
  1294. not called -f because the Unix ls -f option also enables -a and disables -l, -s, and -t. It seems
  1295. useless and ugly to group those unrelated things together in one option. Since this option doesn't do
  1296. that, it has a different name. 
  1297.  
  1298. -X, --sort=extension
  1299.      Sort directory contents alphabetically by file extension (characters after the last `.'); files with
  1300.      no extension are sorted first. 
  1301.  
  1302. -1, --format=single-column
  1303.      List one file per line. 
  1304.  
  1305. -w, --width cols
  1306.      Assume the screen is cols columns wide. The default is taken from the terminal driver if
  1307.      possible; otherwise the environment variable COLUMNS is used if it is set; otherwise the
  1308.      default is 80. 
  1309.  
  1310. -T, --tabsize cols
  1311.      Assume that each tabstop is cols columns wide. The default is 8. 
  1312.  
  1313. -I, --ignore pattern
  1314.      Do not list files whose names match the shell pattern pattern unless they are given on the
  1315.      command line. As in the shell, an initial `.' in a filename does not match a wildcard at the start
  1316.      of pattern. 
  1317.  
  1318. --color, --colour, --color=yes, --colour=yes
  1319.      Colorize the names of files depending on the type of file. See DISPLAY COLORIZATION
  1320.      below. 
  1321.  
  1322. --color=tty, --colour=tty
  1323.      Same as --color but only if standard output is a terminal. This is very useful for shell scripts
  1324.      and command aliases, especially if your favorite pager does not support color control codes. 
  1325.  
  1326. --color=no, --colour=no
  1327.      Disables colorization. This is the default. Provided to override a previous color option. 
  1328.  
  1329. --help
  1330.      Print a usage message on standard output and exit successfully. 
  1331.  
  1332. --version
  1333.      Print version information on standard output then exit successfully. 
  1334.  
  1335. DISPLAY COLORIZATION
  1336. When using the --color option, this version of ls will colorize the file names printed according to the
  1337. name and type of file. By default, this colorization is by type only, and the codes used are ISO 6429
  1338. (ANSI) compliant. 
  1339.  
  1340. You can override the default colors by defining the environment variable LS_COLORS (or
  1341. LS_COLOURS). The format of this variable is reminicent of the termcap(5) file format; a
  1342. colon-separated list of expressions of the form "xx=string", where "xx" is a two-character variable
  1343. name. The variables with their associated defaults are: 
  1344.  
  1345. no 
  1346.      0 Normal (non-filename) text 
  1347.  
  1348. fi 
  1349.      0 Regular file di 32 Directory 
  1350.  
  1351. ln 
  1352.      36 Symbolic link 
  1353.  
  1354. pi 
  1355.      31 Named pipe (FIFO) so 33 Socket 
  1356.  
  1357. bd 
  1358.      44;37 Block device 
  1359.  
  1360. cd 
  1361.      44;37 Character device 
  1362.  
  1363. ex 
  1364.      35 Executable file 
  1365.  
  1366. mi 
  1367.      (none) Missing file (defaults to fi) 
  1368.  
  1369. or 
  1370.      (none) Orphanned symbolic link (defaults to ln) 
  1371.  
  1372. lc 
  1373.      \e[ Left code 
  1374.  
  1375. rc 
  1376.      m Right code 
  1377.  
  1378. ec 
  1379.      (none) End code (replaces lc+no+rc) 
  1380.  
  1381. You only need to include the variables you want to change from the default. 
  1382.  
  1383. File names can also be colorized based on filename extension. This is specified in the LS_COLORS
  1384. variable using the syntax "*ext=string". For example, using ISO 6429 codes, to color all C-language
  1385. source files blue you would specify "*.c=34". This would color all files ending in .c in blue (34)
  1386. color. 
  1387.  
  1388. Control characters can be written either in C-style \escaped notation, or in stty-like ^-notation. The
  1389. C-style notation adds \e for Escape, \_ for a normal space characer, and \? for Delete. In addition,
  1390. the \ escape character can be used to override the default interpretation of \, ^, : and =. 
  1391.  
  1392. Each file will be written as <lc> <color code> <rc> <filename> <ec>. If the <ec> code is
  1393. undefined, the sequence <lc> <no> <rc> will be used instead. This is generally more convenient to
  1394. use, but less general. The left, right and end codes are provided so you don't have to type common
  1395. parts over and over again and to support weird terminals; you will generally not need to change
  1396. them at all unless your terminal does not use ISO 6429 color sequences but a different system. 
  1397.  
  1398. If your terminal does use ISO 6429 color codes, you can compose the type codes (i.e. all except
  1399. the lc, rc, and ec codes) from numerical commands separated by semicolons. The most common
  1400. commands are: 
  1401.  
  1402.      to restore default color 
  1403.  
  1404.      for brighter colors 
  1405.  
  1406.      for underlined text 
  1407.  
  1408.      for flashing text 
  1409.  
  1410. 30 
  1411.      for black foreground 
  1412.  
  1413. 31 
  1414.      for red foreground 
  1415.  
  1416. 32 
  1417.      for green foreground 
  1418.  
  1419. 33 
  1420.      for yellow (or brown) foreground 
  1421.  
  1422. 34 
  1423.      for blue foreground 
  1424.  
  1425. 35 
  1426.      for purple foreground 
  1427.  
  1428. 36 
  1429.      for cyan foreground 
  1430.  
  1431. 37 
  1432.      for white (or gray) foreground 
  1433.  
  1434. 40 
  1435.      for black background 
  1436.  
  1437. 41 
  1438.      for red background 
  1439.  
  1440. 42 
  1441.      for green background 
  1442.  
  1443. 43 
  1444.      for yellow (or brown) background 
  1445.  
  1446. 44 
  1447.      for blue background 
  1448.  
  1449. 45 
  1450.      for purple background 
  1451.  
  1452. 46 
  1453.      for cyan background 
  1454.  
  1455. 47 
  1456.      for white (or gray) background 
  1457.  
  1458. Not all commands will work on all systems or display devices. 
  1459.  
  1460. A few terminal programs do not recognize the default end code properly. If all text gets colorized
  1461. after you do a directory listing, try changing the no and fi codes from 0 to the numerical codes for
  1462. your standard fore- and background colors. 
  1463. mail: mail is a comfortable, flexible, interactive program for composing, sending and receiving electronic
  1464. messages. While reading messages, mail provides you with commands to browse, display, save,
  1465. delete, and respond to messages. While sending mail, mail allows editing and reviewing of messages
  1466. being composed, and the inclusion of text from files or other messages. 
  1467.  
  1468. Incoming mail is stored in the system mailbox for each user. This is a file named after the user in
  1469. /var/spool/mail. mail normally looks in this file for incoming messages, but you can use the MAIL
  1470. environment variable to have it look in a different file. When you read a message, it is marked to be
  1471. moved to a secondary file for storage. This secondary file, called the mbox, is normally the file
  1472. mbox in your home directory. This file can also be changed by setting the MBOX environment
  1473. variable. Messages remain in the mbox file until deliberately removed.
  1474. If no recipient is specified, mail attempts to read messages from the system mailbox. 
  1475.  
  1476. -d 
  1477.      Turn on debugging output. (Neither particularly interesting nor recommended.) 
  1478.  
  1479. -e 
  1480.      Test for presence of mail. If there is no mail, mail prints nothing and exits (with a successful
  1481.      return code). 
  1482.  
  1483. -F 
  1484.      Record the message in a file named after the first recipient. Override the record variable, if
  1485.      set. 
  1486.  
  1487. -H 
  1488.      Print header summary only. 
  1489.  
  1490. -i 
  1491.      Ignore interrupts (as with the ignore variable). 
  1492.  
  1493. -n 
  1494.      Do not initialize from the system default Mail.rc file. 
  1495.  
  1496. -N 
  1497.      Do not print initial header summary. 
  1498.  
  1499. -U 
  1500.      Convert uucp style addresses to Internet standards. Overrides the conv environment variable.
  1501.  
  1502. -v 
  1503.      Pass the -v flag to sendmail(8). 
  1504.  
  1505. -f [filename] Read messages from filename instead of 
  1506.      system mailbox. If no filename is specified, the mbox is used. 
  1507.  
  1508. -f +folder 
  1509.      Use the file folder in the folder directory (same as the folder command). The name of this
  1510.      directory is listed in the folder variable. 
  1511.  
  1512. -h number 
  1513.      The number of network "hops" made so far. This is provided for network software to avoid
  1514.      infinite delivery loops. 
  1515.  
  1516. -r address 
  1517.      Pass address to network delivery software. All tilde (~) commands are disabled. 
  1518.  
  1519. -s subject 
  1520.      Set the Subject header field to subject. 
  1521.  
  1522. -T file 
  1523.      Print the contents of the article-id fields of all messages that were read or deleted on file (for
  1524.      the use of network news programs if available). 
  1525.  
  1526. -u user 
  1527.      Read user's system mailbox. This is only effective if user's system mailbox is not read
  1528.      protected.
  1529. man: man displays information from the reference manuals. It can display complete manual pages that you
  1530. select by title, or one-line summaries selected either by keyword (-k), or by the name of an
  1531. associated file (-f). 
  1532.  
  1533. A section, when given, applies to the titles that follow it on the command line (up to the next
  1534. section, if any). man looks in the indicated section of the manual for those titles. section is either a
  1535. digit (perhaps followed by a single letter indicating the type of manual page), or one of the words
  1536. new, local, old, or public. The abbreviations n, l, o and p are also allowed. If section is omitted,
  1537. man searches all reference sections (giving preference to commands over functions) and prints the
  1538. first manual page it finds. If no manual page is located, man prints an error message. 
  1539.  
  1540. The reference page sources are typically located in the /usr/man/man? directories. Since these
  1541. directories are optionally installed, they may not reside on your host; you may have to mount
  1542. /usr/man from a host on which they do reside. If there are preformatted, up-to-date versions in
  1543. corresponding cat? or fmt? directories, man simply displays or prints those versions. If the
  1544. preformatted version of interest is out of date or missing, man reformats it prior to display. If
  1545. directories for the preformatted versions are not provided, man reformats a page whenever it is
  1546. requested; it uses a temporary file to store the formatted text during display. 
  1547.  
  1548. If the standard output is not a terminal, or if the `-' flag is given, man pipes its output through
  1549. cat(1V). Otherwise, man pipes its output through more(1) to handle paging and underlining on the
  1550. screen.
  1551. -t man arranges for the specified manual pages to be troffed to a suitable raster output device (see
  1552. troff(1) or vtroff(1)). If both the - and -t flags are given, man updates the troffed versions of each
  1553. named title (if necessary), but does not display them. 
  1554.  
  1555. -M path
  1556.      Change the search path for manual pages. path is a colon-separated list of directories that
  1557.      contain manual page directory subtrees. For example, /usr/man/u_man:/usr/man/a_man
  1558.      makes man search in the standard System V locations. When used with the -k or -f options,
  1559.      the -M option must appear first. Each directory in the path is assumed to contain
  1560.      subdirectories of the form man[1-8l-p]. 
  1561.  
  1562. -T macro-package
  1563.      man uses macro-package rather than the standard -man macros defined in
  1564.      /usr/lib/tmac/tmac.an for formatting manual pages. 
  1565.  
  1566. -k keyword ...
  1567.      man prints out one-line summaries from the whatis database (table of contents) that contain
  1568.      any of the given keywords. The whatis database is created using the catman(8) command
  1569.      with the -w option. 
  1570.  
  1571. -f filename ...
  1572.      man attempts to locate manual pages related to any of the given filenames. It strips the
  1573.      leading pathname components from each filename, and then prints one-line summaries
  1574.      containing the resulting basename or names. This option also uses the whatis database.
  1575. mkdir: mkdir creates directories. Standard entries, `.', for the directory itself, and `..' for its parent, are
  1576. made automatically. 
  1577.  
  1578. The -p flag allows missing parent directories to be created as needed. 
  1579.  
  1580. With the exception of the set-gid bit, the current umask(2V) setting determines the mode in which
  1581. directories are created. The new directory inherits the set-gid bit of the parent directory. Modes
  1582. may be modified after creation by using chmod(1V). 
  1583.  
  1584. mkdir requires write permission in the parent directory.
  1585. more: more is a filter that displays the contents of a text file on the terminal, one screenful at a time. It
  1586. normally pauses after each screenful, and prints --More-- at the bottom of the screen. more
  1587. provides a two-line overlap between screens for continuity. If more is reading from a file rather than
  1588. a pipe, the percentage of characters displayed so far is also shown. 
  1589.  
  1590. more scrolls up to display one more line in response to a RETURN character; it displays another
  1591. screenful in response to a SPACE character. Other commands are listed below. 
  1592.  
  1593. page clears the screen before displaying the next screenful of text; it only provides a one-line overlap
  1594. between screens. 
  1595.  
  1596. more sets the terminal to noecho mode, so that the output can be continuous. Commands that you
  1597. type do not normally show up on your terminal, except for the / and ! commands. 
  1598.  
  1599. If the standard output is not a terminal, more acts just like cat(1V), except that a header is printed
  1600. before each file in a series.
  1601. -c Clear before displaying. Redrawing the screen instead of scrolling for faster displays. This option
  1602. is ignored if the terminal does not have the ability to clear to the end of a line. 
  1603.  
  1604. -d 
  1605.      Display error messages rather than ringing the terminal bell if an unrecognized command is
  1606.      used. This is helpful for inexperienced users. 
  1607.  
  1608. -f 
  1609.      Do not fold long lines. This is useful when lines contain nonprinting characters or escape
  1610.      sequences, such as those generated when nroff(1) output is piped through ul(1). 
  1611.  
  1612. -l 
  1613.      Do not treat FORMFEED characters (CTRL-D) as "page breaks." If -l is not used, more
  1614.      pauses to accept commands after any line containing a ^L character (CTRL-D). Also, if a file
  1615.      begins with a FORMFEED, the screen is cleared before the file is printed. 
  1616.  
  1617. -s 
  1618.      Squeeze. Replace multiple blank lines with a single blank line. This is helpful when viewing
  1619.      nroff(1) output, on the screen. 
  1620.  
  1621. -u 
  1622.      Suppress generation of underlining escape sequences. Normally, more handles underlining,
  1623.      such as that produced by nroff(1), in a manner appropriate to the terminal. If the terminal can
  1624.      perform underlining or has a stand-out mode, more supplies appropriate escape sequences as
  1625.      called for in the text file. 
  1626.  
  1627. -lines
  1628.      Display the indicated number of lines in each screenful, rather than the default (the number of
  1629.      lines in the terminal screen less two). 
  1630.  
  1631. +linenumber
  1632.      Start up at linenumber. 
  1633.  
  1634. +/pattern
  1635.      Start up two lines above the line containing the regular expression pattern. Note: unlike
  1636.      editors, this construct should not end with a `/'. If it does, then the trailing slash is taken as a
  1637.      character in the search pattern.
  1638. mv: mv moves files and directories around in the file system. A side effect of mv is to rename a file or
  1639. directory. The three major forms of mv are shown in the synopsis above. 
  1640.  
  1641. The first form of mv moves (changes the name of) filename1 to filename2. If filename2 already
  1642. exists, it is removed before filename1 is moved. If filename2 has a mode which forbids writing, mv
  1643. prints the mode (see chmod(2V)) and reads the standard input to obtain a line; if the line begins with
  1644. y, the move takes place, otherwise mv exits. 
  1645.  
  1646. The second form of mv moves (changes the name of) directory1 to directory2, only if directory2
  1647. does not already exist if it does, the third form applies. 
  1648.  
  1649. The third form of mv moves one or more filenames (may also be directories) with their original
  1650. names, into the last directory in the list. 
  1651.  
  1652. mv refuses to move a file or directory onto itself.
  1653.      Interpret all the following arguments to mv as file names. This allows file names starting with
  1654.      minus. 
  1655.  
  1656. -f 
  1657.      Force. Override any mode restrictions and the -i option. The -f option also suppresses any
  1658.      warning messages about modes which would potentially restrict overwriting. 
  1659.  
  1660. -i 
  1661.      Interactive mode. mv displays the name of the file or directory followed by a question mark
  1662.      whenever a move would replace an existing file or directory. If you type a line starting with y,
  1663.      mv moves the specified file or directory, otherwise mv does nothing with that file or directory.
  1664. passwd: passwd changes (or installs) a password, login shell (-s option), or full name (-f option) associated
  1665. with the user username (your own by default). chsh is equivalent to passwd with the -s option, and
  1666. chfn is equivalent to passwd with the -f option. 
  1667.  
  1668. Use `passwd -y' or yppasswd(1) to change your password in the Network Information Service
  1669. (NIS). This will not affect your local password, or your password on any remote machines on which
  1670. you have accounts. passwd calls yppasswd automatically if you do not have an entry in the local
  1671. passwd file, and the -l option is not specified. 
  1672.  
  1673. When changing a password, passwd prompts for the old password and then for the new one. You
  1674. must supply both, and the new password must be typed twice to forestall mistakes. 
  1675.  
  1676. If password aging is enabled, the first time an ordinary user enters the new password passwd
  1677. checks to see if the old password has "aged" sufficiently. Password "aging" is the amount of time
  1678. (usually a certain number of days) that must elapse between password changes. If "aging" is
  1679. insufficient the new password is rejected and passwd terminates. 
  1680.  
  1681. New passwords should be at least five characters long, if they combine upper-case and lower-case
  1682. letters, or at least six characters long if in monocase. Users that persist in entering shorter passwords
  1683. are compromising their own security. The number of significant characters in a password is eight,
  1684. although longer passwords will be accepted. 
  1685.  
  1686. Only the owner of the name or the super-user may change a password; the owner must prove he
  1687. knows the old password. The super-user can change any password and is not forced to comply
  1688. with password aging requirements. 
  1689.  
  1690. When changing a login shell, passwd displays the current login shell and then prompts for the new
  1691. one. The new login shell must be one of the approved shells listed in /etc/shells unless you are the
  1692. super-user. If /etc/shells does not exist, the only shells that may be specified are /bin/sh and /bin/csh.
  1693.  
  1694. The super-user may change anyone's login shell; normal users may only change their own login shell.
  1695.  
  1696. When changing a full name, passwd displays the current full name, enclosed between brackets, and
  1697. prompts for a new full name. If you type a RETURN, the full name is not changed. If the full name is
  1698. to be made blank, you must type the word "none". 
  1699.  
  1700. The super-user may change anyone's full name; normal users may only change their own.
  1701. -a Display the name and aging information for all users. Can only be invoked by the super-user. 
  1702.  
  1703. -f 
  1704.      Change the full name. 
  1705.  
  1706. -l 
  1707.      Change the local password, login shell, or full name. If username exists in the local passwd
  1708.      file, this is the default. 
  1709.  
  1710. -s 
  1711.      Change the login shell. 
  1712.  
  1713. -y 
  1714.      Change passwd, login shell, or full name in the NIS database. 
  1715.  
  1716. -d [username]
  1717.      Display the name and aging information for the caller or the user specified if the invoker has
  1718.      the right privileges. 
  1719.  
  1720. -e username
  1721.      Expire the password for the user name specified. Can only be invoked by the super-user. 
  1722.  
  1723. -F filename
  1724.      Treat filename as the password file. 
  1725.  
  1726. -n numdays username
  1727.      Set the maturity time of the password for username. Passwords that have not "aged" enough
  1728.      cannot be changed. Can only be set by the super-user. 
  1729.  
  1730. -x numdays username
  1731.  
  1732. Set the expiration time of the password for username. Can only be set by the super-user.
  1733. ps: ps displays information about processes. Normally, only those processes that are running with your
  1734. effective user ID and are attached to a controlling terminal (see termio(4)) are shown. Additional
  1735. categories of processes can be added to the display using various options. In particular, the -a
  1736. option allows you to include processes that are not owned by you (that do not have your user ID),
  1737. and the -x option allows you to include processes without control terminals. When you specify both
  1738. -a and -x, you get processes owned by anyone, with or without a control terminal. The -r option
  1739. restricts the list of processes printed to "running" processes: runnable processes, those in page wait,
  1740. or those in short-term non-interruptible waits. 
  1741.  
  1742. ps displays the process ID, under PID; the control terminal (if any), under TT; the cpu time used by
  1743. the process so far, including both user and system time), under TIME; the state of the process,
  1744. under STAT; and finally, an indication of the COMMAND that is running. 
  1745.  
  1746. The state is given by a sequence of four letters, for example, `RWNA'. 
  1747.  
  1748. First letter 
  1749.      indicates the runnability of the process: 
  1750.  
  1751.      Runnable processes. 
  1752.  
  1753.      Stopped processes. 
  1754.  
  1755.      Processes in page wait. 
  1756.  
  1757.      Processes in non-interruptible waits; typically short-term waits for disk or NFS I/O. 
  1758.  
  1759.      Processes sleeping for less than about 20 seconds. 
  1760.  
  1761.      Processes that are idle (sleeping longer than about 20 seconds). 
  1762.  
  1763.      Processes that have terminated and that are waiting for their parent process to do a wait(2V)
  1764.      ("zombie" processes). 
  1765.  
  1766. Second letter indicates whether a process is swapped out; blank Represented as a SPACE
  1767. character, in this position indicates that the process is loaded (in memory). 
  1768.  
  1769.      Process is swapped out. 
  1770.  
  1771.      Process has specified a soft limit on memory requirements and has exceeded that limit; such a
  1772.      process is (necessarily) not swapped. 
  1773.  
  1774. Third letter indicates whether a process is running with altered CPU scheduling priority (nice(1)):
  1775. blank Represented as a SPACE character, in this position indicates that the process is running
  1776. without special treatment.
  1777.  
  1778.      The process priority is reduced, 
  1779.  
  1780.      The process priority has been raised artificially. 
  1781.  
  1782. Fourth letter indicates any special treatment of the process for virtual memory replacement. The
  1783. letters correspond to options to the vadvise(2) system call. Currently the possibilities are:
  1784. blank Represented as a SPACE character, in this position stands for VA_NORM. 
  1785.  
  1786.      Stands for VA_ANOM. An A typically represents a program which is doing garbage
  1787.      collection. 
  1788.  
  1789.      Stands for VA_SEQL. An S is typical of large image processing programs that are using
  1790.      virtual memory to sequentially address voluminous data. 
  1791.  
  1792. kernel-name specifies the location of the system namelist. If the -k option is given, c-dump-file tells
  1793. ps where to look for the core dump. Otherwise, the core dump is located in the file /vmcore and this
  1794. argument is ignored. swap-file gives the location of a swap file other than the default, /dev/drum.
  1795. pwd: pwd prints the pathname of the working (current) directory. 
  1796.  
  1797. If you are using csh(1), you can use the dirs builtin command to do the same job more quickly; but
  1798. dirs can give a different answer in the rare case that the current directory or a containing directory
  1799. was moved after the shell descended into it. This is because pwd searches back up the directory
  1800. tree to report the true pathname, whereas dirs remembers the pathname from the last cd(1)
  1801. command. The example below illustrates the differences. 
  1802.  
  1803. example% cd /usr/wendy/january/reports example% pwd
  1804. /usr/wendy/january/reports
  1805. example% dirs
  1806. ~/january/reports
  1807. example% mv ~/january ~/february
  1808. example% pwd
  1809. /usr/wendy/february/reports
  1810. example% dirs
  1811. ~/january/reports
  1812. example% 
  1813.  
  1814. pwd and dirs also give different answers when you change directory through a symbolic link. For
  1815. example: example% cd /usr/wendy/january/reports example% pwd
  1816. /usr/wendy/january/reports
  1817. example% dirs
  1818. ~/january/reports
  1819. example% ls -l /usr/wendy/january
  1820. lrwxrwxrwx 1 wendy 17 Jan 30 1983 /usr/wendy/january -> /usr/wendy/1984/jan/ example% cd
  1821. /usr/wendy/january
  1822. example% pwd
  1823. /usr/wendy/1984/jan
  1824. example% dirs
  1825. /usr/wendy/january 
  1826.  
  1827. The pathnames of files mounted with the Automounter can also change if the file is not used for a
  1828. certain time interval (the default is five minutes). 
  1829. rm: rm removes (directory entries for) one or more files. If an entry was the last link to the file, the
  1830. contents of that file are lost. See ln(1V) for more information about multiple links to files. 
  1831.  
  1832. To remove a file, you must have write permission in its directory; but you do not need read or write
  1833. permission on the file itself. If you do not have write permission on the file and the standard input is a
  1834. terminal, rm displays the file's permissions and waits for you to type in a response. If your response
  1835. begins with y the file is deleted; otherwise the file is left alone. 
  1836.  
  1837. rmdir removes each named directory. rmdir only removes empty directories.
  1838.      Treat the following arguments as filenames `-' so that you can specify filenames starting with a
  1839.      minus. 
  1840.  
  1841. -f 
  1842.      Force files to be removed without displaying permissions, asking questions or reporting
  1843.      errors. 
  1844.  
  1845. -i 
  1846.      Ask whether to delete each file, and, under -r, whether to examine each directory.
  1847.      Sometimes called the interactive option. 
  1848.  
  1849. -r 
  1850.      Recursively delete the contents of a directory, its subdirectories, and the directory itself.
  1851. rmdir: rm removes (directory entries for) one or more files. If an entry was the last link to the file, the
  1852. contents of that file are lost. See ln(1V) for more information about multiple links to files. 
  1853.  
  1854. To remove a file, you must have write permission in its directory; but you do not need read or write
  1855. permission on the file itself. If you do not have write permission on the file and the standard input is a
  1856. terminal, rm displays the file's permissions and waits for you to type in a response. If your response
  1857. begins with y the file is deleted; otherwise the file is left alone. 
  1858.  
  1859. rmdir removes each named directory. rmdir only removes empty directories.
  1860.      Treat the following arguments as filenames `-' so that you can specify filenames starting with a
  1861.      minus. 
  1862.  
  1863. -f 
  1864.      Force files to be removed without displaying permissions, asking questions or reporting
  1865.      errors. 
  1866.  
  1867. -i 
  1868.      Ask whether to delete each file, and, under -r, whether to examine each directory.
  1869.      Sometimes called the interactive option. 
  1870.  
  1871. -r 
  1872.      Recursively delete the contents of a directory, its subdirectories, and the directory itself.
  1873. spell: spell collects words from the named files, and looks them up in a hashed spelling list. Words that do
  1874. not appear in the list, or cannot be derived from those that do appear by applying certain inflections,
  1875. prefixes or suffixes, are displayed on the standard output. 
  1876.  
  1877. If there are no filename arguments, words to check are collected from the standard input. spell
  1878. ignores most troff(1), tbl(1), and eqn(1) constructs. Copies of all output words are accumulated in
  1879. the history file, and a stop list filters out misspellings (for example, their=thy-y+ier) that would
  1880. otherwise pass. 
  1881.  
  1882. By default, spell (like deroff(1)) follows chains of included files (.so and .nx troff(1) requests),
  1883. unless the names of such included files begin with /usr/lib. 
  1884.  
  1885. If a +local_file argument is specified, words found in local_file are removed from spell's output.
  1886. local_file is the name of a user-provided file that contains a sorted list of words, one per line. With
  1887. this option, the user can specify a set of words that are correct spellings (in addition to spell's own
  1888. spelling list) for each job. 
  1889.  
  1890. The standard spelling list is based on many sources, and while more haphazard than an ordinary
  1891. dictionary, is also more effective in respect to proper names and popular technical words. Coverage
  1892. of the specialized vocabularies of biology, medicine and chemistry is light. 
  1893.  
  1894. Three programs help maintain and check the hash lists used by spell: 
  1895.  
  1896. hashmake 
  1897.      Reads a list of words from the standard input and writes the corresponding nine-digit hash
  1898.      code on the standard output. 
  1899.  
  1900. spellin 
  1901.      Reads n hash codes from the standard input and 
  1902.  
  1903. writes a compressed spelling list on the standard output. 
  1904.  
  1905. hashcheck Reads a compressed spelling_list and recreates the nine-digit hash codes for all the
  1906. words in it; it writes these codes on the standard output.
  1907. -b 
  1908.      Check British spelling. Besides preferring "centre", "colour", "programme", "speciality",
  1909.      "travelled", and so on, this option insists upon -ise in words like standardize, despite what
  1910.      Fowler and the OED say. 
  1911.  
  1912. -l 
  1913.      Follow the chains of all included files. 
  1914.  
  1915. -v 
  1916.      Print all words not literally in the spelling list, as well as plausible derivations from spelling list
  1917.      words. 
  1918.  
  1919. -x 
  1920.      Print every plausible stem with `=' for each word. 
  1921.  
  1922. -d hlist 
  1923.      Use the file hlist as the hashed spelling list. 
  1924.  
  1925. -h spellhist
  1926.      Place misspelled words with a user/date stamp in file spellhist. 
  1927.  
  1928. -s hstop 
  1929.      Use hstop as the hashed stop list.
  1930.  
  1931.  
  1932. Not all command descriptions were listed here. But look for the update to
  1933. this text, it will have more commands and more descriptions. This text file
  1934. was just one of the many files made by The Psychotic Internet Services.
  1935.