home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / unix-faq / faq.part1 < prev    next >
Encoding:
Text File  |  1995-07-25  |  17.3 KB  |  410 lines

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