home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / unix-faq / faq / part1 < prev    next >
Encoding:
Internet Message Format  |  2004-05-12  |  18.3 KB

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