home *** CD-ROM | disk | FTP | other *** search
/ Nebula / nebula.bin / Documents / FAQ / Unix / Unix.faq1 < prev    next >
Text File  |  1993-01-27  |  13KB  |  302 lines

  1. Archive-name: unix-faq/part1
  2. Version: $Id: part1,v 1.4 92/03/19 14:07:22 tmatimar Exp $
  3.  
  4. These four articles contain the answers to some Frequently Asked
  5. Questions often seen in comp.unix.questions and comp.unix.shell.
  6. Please don't ask these questions again, they've been answered plenty
  7. of times already - and please don't flame someone just because they may
  8. not have read this particular posting.  Thank you.
  9.  
  10. These articles are divided approximately as follows:
  11.  
  12.       1.*) General questions.
  13.       2.*) Relatively basic questions, likely to be asked by beginners.
  14.       3.*) Intermediate questions.
  15.       4.*) Advanced questions, likely to be asked by people who thought
  16.        they already knew all of the answers.
  17.  
  18. This article includes answers to:
  19.  
  20.       1.1)  Who helped you put this list together?
  21.       1.2)  When someone refers to 'rn(1)' or 'ctime(3)', what does
  22.               the number in parentheses mean?
  23.       1.3)  What does {awk,grep,fgrep,egrep,biff,cat,gecos,nroff,troff,tee,bss}
  24.               stand for?
  25.       1.4)  How does the gateway between "comp.unix.questions" and the
  26.               "info-unix" mailing list work?
  27.       1.5)  What are some useful Unix or C books?
  28.       1.6)  What happened to the pronunciation list that used to be
  29.               part of this document?
  30.  
  31.     If you're looking for the answer to, say, question 1.5, and want to skip
  32.     everything else, you can search ahead for the regular expression "^5)".
  33.  
  34. While these are all legitimate questions, they seem to crop up in
  35. comp.unix.questions on an annual basis, usually followed by plenty
  36. of replies (only some of which are correct) and then a period of
  37. griping about how the same questions keep coming up.  You may also like
  38. to read the monthly article "Answers to Frequently Asked Questions"
  39. in the newsgroup "news.announce.newusers", which will tell you what
  40. "UNIX" stands for.
  41.  
  42. With the variety of Unix systems in the world, it's hard to guarantee
  43. that these answers will work everywhere.  Read your local manual pages
  44. before trying anything suggested here.  If you have suggestions or
  45. corrections for any of these answers, please send them to to
  46. tmatimar@nff.ncl.omron.co.jp.
  47.  
  48. 1)  Who helped you put this list together?
  49.  
  50.     I have just taken over the maintenance of this list.  Almost all of
  51.     the work (and the credit) for generating this compilation was done
  52.     by Steve Hayman.
  53.  
  54.     We also owe a great deal of thanks to dozens of Usenet readers who
  55.     submitted questions, answers, corrections and suggestions for this
  56.     list.  Special thanks go to Maarten Litmaath, Guy Harris and
  57.     Jonathan Kamens, who have all made many especially valuable
  58.     contributions.
  59.  
  60. 2)  When someone refers to 'rn(1)' or 'ctime(3)', what does
  61.     the number in parentheses mean?
  62.  
  63.     It looks like some sort of function call, but it isn't.
  64.     These numbers refer to the section of the "Unix manual" where
  65.     the appropriate documentation can be found.  You could type
  66.     "man 3 ctime" to look up the manual page for "ctime" in section 3
  67.     of the manual.
  68.  
  69.     The traditional manual sections are:
  70.  
  71.     1    User-level  commands
  72.     2    System calls
  73.     3    Library functions
  74.     4    Devices and device drivers
  75.     5    File formats
  76.     6    Games
  77.     7    Various miscellaneous stuff - macro packages etc.
  78.     8    System maintenance and operation commands
  79.  
  80.     Some Unix versions use non-numeric section names.  For instance,
  81.     Xenix uses "C" for commands and "S" for functions.
  82.  
  83.     Each section has an introduction, which you can read with "man # intro"
  84.     where # is the section number.
  85.  
  86.     Sometimes the number is necessary to differentiate between a
  87.     command and a library routine or system call of the same name.  For
  88.     instance, your system may have "time(1)", a manual page about the
  89.     'time' command for timing programs, and also "time(3)", a manual
  90.     page about the 'time' subroutine for determining the current time.
  91.     You can use "man 1 time" or "man 3 time" to specify which "time"
  92.     man page you're interested in.
  93.  
  94.     You'll often find other sections for local programs or
  95.     even subsections of the sections above - Ultrix has
  96.     sections 3m, 3n, 3x and 3yp among others.
  97.  
  98. 3)  What does {awk,grep,fgrep,egrep,biff,cat,gecos,nroff,troff,tee,bss,rc}
  99.     stand for?
  100.  
  101.     awk = "Aho Weinberger and Kernighan"
  102.  
  103.     This language was named by its authors, Al Aho, Peter Weinberger and
  104.     Brian Kernighan.
  105.  
  106.     grep = "Global Regular Expression Print"
  107.  
  108.     grep comes from the ed command to print all lines matching a
  109.     certain pattern
  110.  
  111.             g/re/p
  112.  
  113.     where "re" is a "regular expression".
  114.  
  115.     fgrep = "Fixed GREP".
  116.  
  117.     fgrep searches for fixed strings only.  The "f" does not
  118.     stand for "fast" - in fact, "fgrep foobar *.c" is usually slower
  119.     than "egrep foobar *.c"  (Yes, this is kind of surprising. Try it.)
  120.  
  121.     Fgrep still has its uses though, and may be useful when searching
  122.     a file for a larger number of strings than egrep can handle.
  123.  
  124.     egrep = "Extended GREP"
  125.  
  126.     egrep uses fancier regular expressions than grep.
  127.     Many people use egrep all the time, since it has some more
  128.     sophisticated internal algorithms than grep or fgrep,
  129.     and is usually the fastest of the three programs.
  130.  
  131.     cat = "CATenate"
  132.  
  133.     catenate is an obscure word meaning "to connect in a series",
  134.     which is what the "cat" command does to one or more files.
  135.     Not to be confused with C/A/T, the Computer Aided Typesetter.
  136.  
  137.     gecos = "General Electric Comprehensive Operating System"
  138.     
  139.     When GE's large systems division was sold to Honeywell,
  140.     Honeywell dropped the "E" from "GECOS".
  141.  
  142.     Unix's password file has a "pw_gecos" field.  The name is
  143.     a real holdover from the early days.  Dennis Ritchie
  144.     has reported:
  145.  
  146.         "Sometimes we sent printer output or batch jobs
  147.          to the GCOS machine.  The gcos field in the
  148.          password file was a place to stash the information
  149.          for the $IDENT card.  Not elegant."
  150.  
  151.     nroff = "New ROFF"
  152.     troff = "Typesetter new ROFF"
  153.     
  154.     These are descendants of "roff", which was a re-implementation
  155.     of the Multics "runoff" program (a program that you'd use to
  156.     "run off" a good copy of a document).
  157.     
  158.     tee    = T
  159.  
  160.     From plumbing terminology for a T-shaped pipe splitter.
  161.  
  162.     bss = "Block Started by Symbol"
  163.     
  164.     Dennis Ritchie says:
  165.  
  166.         Actually the acronym (in the sense we took it up; it may
  167.         have other credible etymologies) is "Block Started by Symbol."
  168.         It was a pseudo-op in FAP (Fortran Assembly [-er?] Program), an
  169.         assembler for the IBM 704-709-7090-7094 machines.  It defined
  170.         its label and set aside space for a given number of words.
  171.         There was another pseudo-op, BES, "Block Ended by Symbol"
  172.         that did the same except that the label was defined by
  173.         the last assigned word + 1.  (On these machines Fortran
  174.         arrays were stored backwards in storage and were 1-origin.)
  175.  
  176.         The usage is reasonably appropriate, because just as with
  177.         standard Unix loaders, the space assigned didn't have to
  178.         be punched literally into the object deck but was represented
  179.         by a count somewhere.
  180.  
  181.     biff = "BIFF"
  182.  
  183.         This command, which turns on asynchronous mail notification,
  184.     was actually named after a dog at Berkeley.
  185.  
  186.         I can confirm the origin of biff, if you're interested.  Biff
  187.         was Heidi Stettner's dog, back when Heidi (and I, and Bill Joy)
  188.         were all grad students at U.C. Berkeley and the early versions
  189.         of BSD were being developed.   Biff was popular among the
  190.         residents of Evans Hall, and was known for barking at the
  191.         mailman, hence the name of the command.
  192.  
  193.     Confirmation courtesy of Eric Cooper, Carnegie Mellon
  194.     University
  195.  
  196.     rc (as in ".cshrc" or "/etc/rc") = "RunCom"
  197.  
  198.     "rc" derives from "runcom", from the MIT CTSS system, ca. 1965.
  199.  
  200.         'There was a facility that would execute a bunch of commands
  201.         stored in a file; it was called "runcom" for "run commands",
  202.         and the file began to be called "a runcom."
  203.  
  204.         "rc" in Unix is a fossil from that usage.'
  205.     
  206.     Brian Kernighan & Dennis Ritchie, as told to Vicki Brown
  207.  
  208.     "rc" is also the name of the shell from the new Plan 9
  209.     operating system.
  210.  
  211.     Don Libes' book "Life with Unix" contains lots more of these
  212.     tidbits.
  213.  
  214. 4)  How does the gateway between "comp.unix.questions" and the
  215.     "info-unix" mailing list work?
  216.  
  217.     "Info-Unix" and "Unix-Wizards" are mailing list versions of
  218.     comp.unix.questions and comp.unix.wizards respectively.
  219.     There should be no difference in content between the
  220.     mailing list and the newsgroup.
  221.  
  222.     To get on or off either of these lists, send mail to
  223.     Info-Unix-Request@brl.mil or Unix-Wizards-Request@brl.mil .
  224.     Be sure to use the '-Request'.  Don't expect an immediate response.
  225.  
  226.     Here are the gory details, courtesy of the list's maintainer, Bob Reschly.
  227.  
  228.     ==== postings to info-UNIX and UNIX-wizards lists ====
  229.  
  230.        Anything submitted to the list is posted; I do not moderate incoming
  231.     traffic -- BRL functions as a reflector.  Postings submitted by Internet
  232.     subscribers should be addressed to the list address (info-UNIX or UNIX-
  233.     wizards);  the '-request' addresses are for correspondence with the list
  234.     maintainer [me].  Postings submitted by USENET readers should be
  235.     addressed to the appropriate news group (comp.unix.questions or
  236.     comp.unix.wizards).
  237.  
  238.        For Internet subscribers, received traffic will be of two types;
  239.     individual messages, and digests.  Traffic which comes to BRL from the
  240.     Internet and BITNET (via the BITNET-Internet gateway) is immediately
  241.     resent to all addressees on the mailing list.  Traffic originating on
  242.     USENET is gathered up into digests which are sent to all list members
  243.     daily.
  244.  
  245.        BITNET traffic is much like Internet traffic.  The main difference is
  246.     that I maintain only one address for traffic destined to all BITNET
  247.     subscribers. That address points to a list exploder which then sends
  248.     copies to individual BITNET subscribers.  This way only one copy of a
  249.     given message has to cross the BITNET-Internet gateway in either
  250.     direction.
  251.  
  252.        USENET subscribers see only individual messages.  All messages
  253.     originating on the Internet side are forwarded to our USENET machine.
  254.     They are then posted to the appropriate newsgroup.  Unfortunately,
  255.     for gatewayed messages, the sender becomes "news@brl-adm".  This is
  256.     currently an unavoidable side-effect of the software which performs the
  257.     gateway function.
  258.  
  259.        As for readership, USENET has an extremely large readership - I would
  260.     guess several thousand hosts and tens of thousands of readers.  The
  261.     master list maintained here at BRL runs about two hundred fifty entries
  262.     with roughly ten percent of those being local redistribution lists.
  263.     I don't have a good feel for the size of the BITNET redistribution, but
  264.     I would guess it is roughly the same size and composition as the master
  265.     list.  Traffic runs 150K to 400K bytes per list per week on average.
  266.  
  267. 5)  What are some useful Unix or C books?
  268.  
  269.     Mitch Wright (mitch@cirrus.com) maintains a useful list of Unix and
  270.     C books, with descriptions and some mini-reviews.  There are currently
  271.     77 titles on his list.
  272.  
  273.     You can obtain a copy of this list by anonymous ftp from
  274.     ftp.wg.omron.co.jp (133.210.4.4), where it's
  275.     "pub/unix-faq/Unix-C-Booklist".
  276.     If you can't use anonymous ftp, email the line "help" to
  277.     "mailserv@iuvax.cs.indiana.edu" for instructions on
  278.     retrieving things via email.
  279.  
  280.     Send additions or suggestions to mitch@cirrus.com.
  281.  
  282. 6)  What happened to the pronunciation list that used to be part of this
  283.     document?
  284.  
  285.     From its inception in 1989, this FAQ document included a comprehensive
  286.     pronunciation list maintained by Maarten Litmaath (thanks, Maarten!).
  287.     (Does anyone know who *created* it?)
  288.  
  289.     It has been retired, since it is not really relevant to the topic of
  290.     "Unix questions".  You can still find it as part of the
  291.     widely-distributed "Jargon" file (maintained by Eric S. Raymond,
  292.     eric@snark.thyrsus.com) which seems like a much more appropriate
  293.     forum for the topic of "How do you pronounce  /* ?"
  294.  
  295.     If you'd like a copy, you can ftp one from ftp.wg.omron.co.jp
  296.     (133.210.4.4), it's "pub/unix-faq/Pronunciation-Guide".
  297. -- 
  298. Ted Timar - tmatimar@nff.ncl.omron.co.jp
  299. Omron Corporation, Shimokaiinji, Nagaokakyo-city, Kyoto 617,  Japan
  300.  
  301.  
  302.