home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / answers / unix-faq / faq / part1 < prev    next >
Internet Message Format  |  1993-12-26  |  16KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!pad-thai.aktis.com!pad-thai.aktis.com!not-for-mail
  2. From: tmatimar@empress.com (Ted M A Timar)
  3. Newsgroups: comp.unix.questions,comp.unix.shell,news.answers,comp.answers
  4. Subject: Unix - Frequently Asked Questions (1/7) Digest [Frequent posting]
  5. Supersedes: <unix-faq/faq/part1_755758811@GZA.COM>
  6. Followup-To: comp.unix.questions
  7. Date: 27 Dec 1993 00:00:28 -0500
  8. Organization: Empress Software
  9. Lines: 379
  10. Sender: faqserv@security.ov.com
  11. Approved: news-answers-request@MIT.Edu
  12. Distribution: world
  13. Expires: 24 Jan 1994 05:00:09 GMT
  14. Message-ID: <unix-faq/faq/part1_756968409@GZA.COM>
  15. References: <unix-faq/faq/contents_756968409@GZA.COM>
  16. NNTP-Posting-Host: pad-thai.aktis.com
  17. X-Last-Updated: 1993/09/02
  18. Xref: senator-bedfellow.mit.edu comp.unix.questions:66494 comp.unix.shell:14267 news.answers:16183 comp.answers:3155
  19.  
  20. Archive-name: unix-faq/faq/part1
  21. Version: $Id: part1,v 2.3 1993/09/01 23:28:52 tmatimar Exp $
  22.  
  23. These seven articles contain the answers to some Frequently Asked
  24. Questions often seen in comp.unix.questions and comp.unix.shell.
  25. Please don't ask these questions again, they've been answered plenty
  26. of times already - and please don't flame someone just because they may
  27. not have read this particular posting.  Thank you.
  28.  
  29. Many FAQs, including this one, are available on the archive site
  30. rtfm.mit.edu in the directory pub/usenet/news.answers.
  31. The name under which a FAQ is archived appears in the "Archive-Name:"
  32. line at the top of the article.  This FAQ is archived as
  33. "unix-faq/faq/part[1-7]".
  34.  
  35. These articles are divided approximately as follows:
  36.  
  37.       1.*) General questions.
  38.       2.*) Relatively basic questions, likely to be asked by beginners.
  39.       3.*) Intermediate questions.
  40.       4.*) Advanced questions, likely to be asked by people who thought
  41.        they already knew all of the answers.
  42.       5.*) Questions pertaining to the various shells, and the differences.
  43.       6.*) An overview of Unix variants.
  44.       7.*) An comparison of configuration management systems (RCS, SCCS).
  45.  
  46. This article includes answers to:
  47.  
  48.       1.1)  Who helped you put this list together?
  49.       1.2)  When someone refers to 'rn(1)' or 'ctime(3)', what does
  50.               the number in parentheses mean?
  51.       1.3)  What does {some strange unix command name} stand for?
  52.       1.4)  How does the gateway between "comp.unix.questions" and the
  53.               "info-unix" mailing list work?
  54.       1.5)  What are some useful Unix or C books?
  55.       1.6)  What happened to the pronunciation list that used to be
  56.               part of this document?
  57.  
  58. If you're looking for the answer to, say, question 1.5, and want to skip
  59. everything else, you can search ahead for the regular expression "^1.5)".
  60.  
  61. While these are all legitimate questions, they seem to crop up in
  62. comp.unix.questions or comp.unix.shell on an annual basis, usually
  63. followed by plenty of replies (only some of which are correct) and then
  64. a period of griping about how the same questions keep coming up.  You
  65. may also like to read the monthly article "Answers to Frequently Asked
  66. Questions" in the newsgroup "news.announce.newusers", which will tell
  67. you what "UNIX" stands for.
  68.  
  69. With the variety of Unix systems in the world, it's hard to guarantee
  70. that these answers will work everywhere.  Read your local manual pages
  71. before trying anything suggested here.  If you have suggestions or
  72. corrections for any of these answers, please send them to to
  73. tmatimar@empress.com.
  74.  
  75. ----------------------------------------------------------------------
  76.  
  77. Subject: Who helped you put this list together?
  78. Date: Thu Mar 18 17:16:55 EST 1993
  79.  
  80. 1.1)  Who helped you put this list together?
  81.  
  82.       I took over the maintenance of this list.  Almost all of the work
  83.       (and the credit) for generating this compilation was done by
  84.       Steve Hayman.
  85.  
  86.       We also owe a great deal of thanks to dozens of Usenet readers who
  87.       submitted questions, answers, corrections and suggestions for this
  88.       list.  Special thanks go to Maarten Litmaath, Guy Harris and
  89.       Jonathan Kamens, who have all made many especially valuable
  90.       contributions.
  91.  
  92.       Part 5 of this document (shells) was written almost entirely by
  93.       Matthew Wicks <wicks@dcdmjw.fnal.gov>.
  94.  
  95.       Part 6 of this document (Unix flavours) was written almost entirely by
  96.       Pierre (P.) Lewis <lew@bnr.ca>.
  97.  
  98.       Where possible the author of each question and the date it was last
  99.       updated is given at the top.  Unfortunately, I only started this
  100.       practice recently, and much of the information is lost.  I was also
  101.       negligent in keeping track of who provided updates to questions.
  102.       Sorry to those who have made valuable contributions, but did not
  103.       receive the credit and recognition that they legitimately deserve.
  104.  
  105. ------------------------------
  106.  
  107. Subject: When someone refers to 'rn(1)' ...  the number in parentheses mean?
  108. Date: Thu Mar 18 17:16:55 EST 1993
  109.  
  110. 1.2)  When someone refers to 'rn(1)' or 'ctime(3)', what does
  111.       the number in parentheses mean?
  112.  
  113.       It looks like some sort of function call, but it isn't.  These
  114.       numbers refer to the section of the "Unix manual" where the
  115.       appropriate documentation can be found.  You could type
  116.       "man 3 ctime" to look up the manual page for "ctime" in section 3
  117.       of the manual.
  118.  
  119.       The traditional manual sections are:
  120.  
  121.     1    User-level  commands
  122.     2    System calls
  123.     3    Library functions
  124.     4    Devices and device drivers
  125.     5    File formats
  126.     6    Games
  127.     7    Various miscellaneous stuff - macro packages etc.
  128.     8    System maintenance and operation commands
  129.  
  130.       Some Unix versions use non-numeric section names.  For instance,
  131.       Xenix uses "C" for commands and "S" for functions.  Some newer
  132.       versions of Unix require "man -s# title" instead of "man # title".
  133.  
  134.       Each section has an introduction, which you can read with "man #
  135.       intro" where # is the section number.
  136.  
  137.       Sometimes the number is necessary to differentiate between a
  138.       command and a library routine or system call of the same name.
  139.       For instance, your system may have "time(1)", a manual page about
  140.       the 'time' command for timing programs, and also "time(3)", a
  141.       manual page about the 'time' subroutine for determining the
  142.       current time.  You can use "man 1 time" or "man 3 time" to
  143.       specify which "time" man page you're interested in.
  144.  
  145.       You'll often find other sections for local programs or even
  146.       subsections of the sections above - Ultrix has sections 3m, 3n,
  147.       3x and 3yp among others.
  148.  
  149. ------------------------------
  150.  
  151. Subject: What does {some strange unix command name} stand for?
  152. Date: Thu Mar 18 17:16:55 EST 1993
  153.  
  154. 1.3)  What does {some strange unix command name} stand for?
  155.  
  156.       awk = "Aho Weinberger and Kernighan"
  157.  
  158.     This language was named by its authors, Al Aho, Peter
  159.     Weinberger and Brian Kernighan.
  160.  
  161.       grep = "Global Regular Expression Print"
  162.  
  163.     grep comes from the ed command to print all lines matching a
  164.     certain pattern
  165.  
  166.             g/re/p
  167.  
  168.     where "re" is a "regular expression".
  169.  
  170.       fgrep = "Fixed GREP".
  171.  
  172.     fgrep searches for fixed strings only.  The "f" does not stand
  173.     for "fast" - in fact, "fgrep foobar *.c" is usually slower than
  174.     "egrep foobar *.c"  (Yes, this is kind of surprising. Try it.)
  175.  
  176.     Fgrep still has its uses though, and may be useful when searching
  177.     a file for a larger number of strings than egrep can handle.
  178.  
  179.       egrep = "Extended GREP"
  180.  
  181.     egrep uses fancier regular expressions than grep.  Many people
  182.     use egrep all the time, since it has some more sophisticated
  183.     internal algorithms than grep or fgrep, and is usually the
  184.     fastest of the three programs.
  185.  
  186.       cat = "CATenate"
  187.  
  188.     catenate is an obscure word meaning "to connect in a series",
  189.     which is what the "cat" command does to one or more files.  Not
  190.     to be confused with C/A/T, the Computer Aided Typesetter.
  191.  
  192.       gecos = "General Electric Comprehensive Operating System"
  193.     
  194.     When GE's large systems division was sold to Honeywell,
  195.     Honeywell dropped the "E" from "GECOS".
  196.  
  197.     Unix's password file has a "pw_gecos" field.  The name is a
  198.     real holdover from the early days.  Dennis Ritchie has reported:
  199.  
  200.         "Sometimes we sent printer output or batch jobs
  201.          to the GCOS machine.  The gcos field in the password file
  202.          was a place to stash the information for the $IDENT card.
  203.          Not elegant."
  204.  
  205.       nroff = "New ROFF"
  206.       troff = "Typesetter new ROFF"
  207.     
  208.     These are descendants of "roff", which was a re-implementation
  209.     of the Multics "runoff" program (a program that you'd use to
  210.     "run off" a good copy of a document).
  211.  
  212.       tee       = T
  213.  
  214.     From plumbing terminology for a T-shaped pipe splitter.
  215.  
  216.       bss = "Block Started by Symbol"
  217.     
  218.     Dennis Ritchie says:
  219.  
  220.         Actually the acronym (in the sense we took it up; it may
  221.         have other credible etymologies) is "Block Started by
  222.         Symbol." It was a pseudo-op in FAP (Fortran Assembly [-er?]
  223.         Program), an assembler for the IBM 704-709-7090-7094
  224.         machines.  It defined its label and set aside space for a
  225.         given number of words.  There was another pseudo-op, BES,
  226.         "Block Ended by Symbol" that did the same except that the
  227.         label was defined by the last assigned word + 1.  (On these
  228.         machines Fortran arrays were stored backwards in storage
  229.         and were 1-origin.)
  230.  
  231.         The usage is reasonably appropriate, because just as with
  232.         standard Unix loaders, the space assigned didn't have to be
  233.         punched literally into the object deck but was represented
  234.         by a count somewhere.
  235.  
  236.       biff = "BIFF"
  237.  
  238.     This command, which turns on asynchronous mail notification,
  239.     was actually named after a dog at Berkeley.
  240.  
  241.         I can confirm the origin of biff, if you're interested.
  242.         Biff was Heidi Stettner's dog, back when Heidi (and I, and
  243.         Bill Joy) were all grad students at U.C. Berkeley and the
  244.         early versions of BSD were being developed.   Biff was
  245.         popular among the residents of Evans Hall, and was known
  246.         for barking at the mailman, hence the name of the command.
  247.  
  248.     Confirmation courtesy of Eric Cooper, Carnegie Mellon University
  249.  
  250.       rc (as in ".cshrc" or "/etc/rc") = "RunCom"
  251.  
  252.     "rc" derives from "runcom", from the MIT CTSS system, ca. 1965.
  253.  
  254.         'There was a facility that would execute a bunch of
  255.         commands stored in a file; it was called "runcom" for "run
  256.         commands", and the file began to be called "a runcom."
  257.  
  258.         "rc" in Unix is a fossil from that usage.'
  259.     
  260.     Brian Kernighan & Dennis Ritchie, as told to Vicki Brown
  261.  
  262.     "rc" is also the name of the shell from the new Plan 9
  263.     operating system.
  264.  
  265.       Perl = "Practical Extraction and Report Language"
  266.       Perl = "Pathologically Eclectic Rubbish Lister"
  267.  
  268.     The Perl language is Larry Wall's highly popular
  269.     freely-available completely portable text, process, and file
  270.     manipulation tool that bridges the gap between shell and C
  271.     programming (or between doing it on the command line and
  272.     pulling your hair out).  For further information, see the
  273.     Usenet newsgroup comp.lang.perl.
  274.  
  275.       Don Libes' book "Life with Unix" contains lots more of these
  276.       tidbits.
  277.  
  278. ------------------------------
  279.  
  280. Subject: How does the gateway between "comp.unix.questions" ... work ?
  281. Date: Thu Mar 18 17:16:55 EST 1993
  282.  
  283. 1.4)  How does the gateway between "comp.unix.questions" and the
  284.       "info-unix" mailing list work?
  285.  
  286.       "info-unix" and "unix-wizards" are mailing list versions of
  287.       comp.unix.questions and comp.unix.wizards respectively.
  288.       There should be no difference in content between the
  289.       mailing list and the newsgroup.
  290.  
  291.       To get on or off either of these lists, send mail to
  292.       info-unix-request@brl.mil or unix-wizards-request@brl.mil.
  293.       Be sure to use the '-Request'.  Don't expect an immediate response.
  294.  
  295.       Here are the gory details, courtesy of the list's maintainer,
  296.       Bob Reschly.
  297.  
  298.       ==== postings to info-UNIX and UNIX-wizards lists ====
  299.  
  300.       Anything submitted to the list is posted; I do not moderate
  301.       incoming traffic -- BRL functions as a reflector.  Postings
  302.       submitted by Internet subscribers should be addressed to the list
  303.       address (info-UNIX or UNIX- wizards);  the '-request' addresses
  304.       are for correspondence with the list maintainer [me].  Postings
  305.       submitted by USENET readers should be addressed to the
  306.       appropriate news group (comp.unix.questions or
  307.       comp.unix.wizards).
  308.  
  309.       For Internet subscribers, received traffic will be of two types;
  310.       individual messages, and digests.  Traffic which comes to BRL
  311.       from the Internet and BITNET (via the BITNET-Internet gateway) is
  312.       immediately resent to all addressees on the mailing list.
  313.       Traffic originating on USENET is gathered up into digests which
  314.       are sent to all list members daily.
  315.  
  316.       BITNET traffic is much like Internet traffic.  The main
  317.       difference is that I maintain only one address for traffic
  318.       destined to all BITNET subscribers. That address points to a list
  319.       exploder which then sends copies to individual BITNET
  320.       subscribers.  This way only one copy of a given message has to
  321.       cross the BITNET-Internet gateway in either direction.
  322.  
  323.       USENET subscribers see only individual messages.  All messages
  324.       originating on the Internet side are forwarded to our USENET
  325.       machine.  They are then posted to the appropriate newsgroup.
  326.       Unfortunately, for gatewayed messages, the sender becomes
  327.       "news@brl-adm".  This is currently an unavoidable side-effect of
  328.       the software which performs the gateway function.
  329.  
  330.       As for readership, USENET has an extremely large readership - I
  331.       would guess several thousand hosts and tens of thousands of
  332.       readers.  The master list maintained here at BRL runs about two
  333.       hundred fifty entries with roughly ten percent of those being
  334.       local redistribution lists.  I don't have a good feel for the
  335.       size of the BITNET redistribution, but I would guess it is
  336.       roughly the same size and composition as the master list.
  337.       Traffic runs 150K to 400K bytes per list per week on average.
  338.  
  339. ------------------------------
  340.  
  341. Subject: What are some useful Unix or C books?
  342. Date: Thu Mar 18 17:16:55 EST 1993
  343.  
  344. 1.5)  What are some useful Unix or C books?
  345.  
  346.       Mitch Wright (mitch@cirrus.com) maintains a useful list of Unix
  347.       and C books, with descriptions and some mini-reviews.  There are
  348.       currently 167 titles on his list.
  349.  
  350.       You can obtain a copy of this list by anonymous ftp from
  351.       ftp.rahul.net (192.160.13.1), where it's "pub/mitch/YABL/yabl".
  352.       Send additions or suggestions to mitch@cirrus.com.
  353.  
  354.       Samuel Ko (kko@sfu.ca) maintains another list of Unix books.
  355.       This list contains only recommended books, and is therefore
  356.       somewhat shorter.  This list is also a classified list, with
  357.       books grouped into categories, which may be better if you are
  358.       looking for a specific type of book.
  359.  
  360.       You can obtain a copy of this list by anonymous ftp from
  361.       rtfm.mit.edu (18.172.1.27), where it's
  362.       "pub/usenet/news.answers/books/unix".  Send additions or
  363.       suggestions to kko@sfu.ca.
  364.  
  365.       If you can't use anonymous ftp, email the line "help" to
  366.       "ftpmail@decwrl.dec.com" for instructions on retrieving
  367.       things via email.
  368.  
  369. ------------------------------
  370.  
  371. Subject: What happened to the pronunciation list ... ?
  372. Date: Thu Mar 18 17:16:55 EST 1993
  373.  
  374. 1.6)  What happened to the pronunciation list that used to be part of this
  375.       document?
  376.  
  377.       From its inception in 1989, this FAQ document included a
  378.       comprehensive pronunciation list maintained by Maarten Litmaath
  379.       (thanks, Maarten!).  It was originally created by Carl Paukstis
  380.       <carlp@frigg.isc-br.com>.
  381.  
  382.       It has been retired, since it is not really relevant to the topic
  383.       of "Unix questions".  You can still find it as part of the
  384.       widely-distributed "Jargon" file (maintained by Eric S. Raymond,
  385.       eric@snark.thyrsus.com) which seems like a much more appropriate
  386.       forum for the topic of "How do you pronounce  /* ?"
  387.  
  388.       If you'd like a copy, you can ftp one from ftp.wg.omron.co.jp
  389.       (133.210.4.4), it's "pub/unix-faq/docs/Pronunciation-Guide".
  390.  
  391. ------------------------------
  392.  
  393. End of unix/faq Digest part 1 of 7
  394. **********************************
  395.  
  396. -- 
  397. Ted Timar - tmatimar@empress.com
  398. Empress Software, 3100 Steeles Ave E, Markham, Ont., Canada L3R 8T3
  399.