home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / infoguide / advanced / unix / unix-faq-part1 < prev    next >
Text File  |  1997-12-01  |  16KB  |  391 lines

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