home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / answers / unix-faq / user-friendly < prev    next >
Encoding:
Internet Message Format  |  1993-12-20  |  14.9 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!gatech!news-feed-2.peachnet.edu!concert!quad.wfunet.wfu.edu!news
  2. From: cuuf@wfu.edu
  3. Newsgroups: comp.unix.user-friendly,comp.answers,news.answers
  4. Subject: comp.unix.user-friendly Frequently Asked Questions (FAQ)
  5. Followup-To: comp.unix.user-friendly
  6. Date: 20 Dec 1993 12:00:12 GMT
  7. Organization: Wake Forest University
  8. Lines: 380
  9. Approved: news-answers-request@MIT.Edu
  10. Message-ID: <2f444c$bsj@quad.wfunet.wfu.edu>
  11. NNTP-Posting-Host: ac.wfunet.wfu.edu
  12. Xref: senator-bedfellow.mit.edu comp.unix.user-friendly:2184 comp.answers:3097 news.answers:16019
  13.  
  14. Archive-name: unix-faq/user-friendly
  15.  
  16. FAQ (Frequently-asked Questions) for comp.unix.user-friendly
  17. ============================================================================
  18.  
  19. This FAQ is automatically posted on the 5th and 20th of each month. The
  20. latest version of the FAQ is available in the following ways: 
  21.  
  22. anonymous ftp to ftp.wfu.edu /pub/usenet/cuuf-FAQ
  23. gopher to gopher.wfu.edu port 70 /Wake Forest Information/Computer information
  24.                                  /Usenet News information maintained by Wake...
  25.  
  26. THE PURPOSE OF THIS FAQ is to archive "Frequently Asked Questions", and by so
  27. doing, to improve the quality of the newsgroup discussion by reducing redundant questions.   The FAQ also serves as a reference to new readers, providing one
  28. resource which will answer many of their questions. It does not matter if a
  29. FAQ is necessarily appropriate to the group's charter-- if it appears
  30. frequently, its inclusion in the FAQ will reduce the frequency.
  31.  
  32. Since this is a new newsgroup, there currently are very few FAQ's. If
  33. users consider a topic worth incorporating into this FAQ, they are
  34. encouraged to compile and email any FAQs to cuuf@wfu.edu FAQs should try
  35. to roughly incorporate which category(ies) of users the FAQ applies to (if
  36. applicable) i.e., novice, casual, expert, etc.  If you do NOT want your name
  37. credited with the FAQ, please say so.
  38.  
  39. The FAQ is maintained by Lachlan Cranswick <lachlan@dmp.csiro.au> and Noel
  40. Hunter <noel@wfu.edu>
  41.  
  42. ============================================================================
  43. Contents
  44. ===========================================================================
  45. 1. Novice
  46.     1.1 Why did the people who wrote Unix use different commands from
  47.             MS-DOS?
  48.         1.2 What books are available for learning Unix?
  49.         1.3 What are some basic commands and concepts for new users?
  50.     1.4 What Internet resources are available for learning Unix?
  51.  
  52. 2. Casual
  53.     2.1 What shells are friendliest, and how can one make shells
  54.     friendlier?
  55.  
  56. 3. Expert
  57.     3.1 What on-line documentation / help systems are available free
  58.             on the Internet
  59.  
  60. ===========================================================================
  61. 1. NOVICE QUESTIONS
  62. ===========================================================================
  63.  
  64. Subject: 1.1 Why did the people who wrote Unix use different commands from
  65.              MS-DOS?
  66.  
  67. Unix was written first.  MS-DOS is a distant relative, tracing some of its
  68. roots to Unix, but also incorporating other influences.
  69.  
  70. Submitted by:
  71.         Randolph J. Herber,
  72.         (Speaking for myself and not US, USDOE, Fermilab or URA.)
  73.         (Trademarks belong to their respective owners.)
  74.         @ home: {att|wheaton|uunet!tellab5}!yclept!rjh, rjh@yclept.chi.il.us
  75.  
  76. Quoting from The Bell System Technical Journal, Vol. 57, No. 6, July-August,
  77. 1978, M.D. McILROY, E.N. PINSON, and B.A. TAGUE, ``Forward'':
  78.  
  79.     The UNIX story begins with Ken Thompson's work on a cast-off
  80.     PDP-7 minicomputer in 1969.
  81.  
  82. Quoting from The Bell System Technical Journal, Vol. 57, No. 6, July-August,
  83. 1978, D.M. RITCHIE and K. THOMPSON, ``The UNIX Time-sharing System'':
  84.  
  85.     There have been four versions of the UNIX time-sharing system.  The
  86.     earliest (circa 1969-1970) ran on Digital Equipment Corporation
  87.     PDP-7 and -9 computers.  The second version ran on the unprotected
  88.     PDP-11/20 computer.  The third incorporated multiprogramming and
  89.     ran on the PDP-11/34, /40, /45, /60, and /70 computers, it is the
  90.     one described in the previously published version of this paper.
  91.  
  92.     ...
  93.  
  94.     Since PDP-11 UNIX became operational in February, 1971, over 600
  95.     installations have been put into service.
  96.  
  97. Quoting from The MS-DOS Encyclopedia, Susan Lammers, Editor-in-Chief, 1988,
  98. Microsoft Press (a division of Microsoft Corporation), page 19:
  99.  
  100.     In spite of such difficulties, however, the new operating system
  101.     ran on the prototype for the first time in 1981.  In the six months
  102.     that followed, the system was continually refined and expanded, and
  103.     by the time of its debut in August 1981, MS-DOS, like the IBM
  104.     Personal Computer on which it appeared, had become a functional
  105.     product for home and office use.
  106.  
  107. Quote from ibid, page 31 (in a section on the version 2.0 file system):
  108.  
  109.     The file system was logically consistent with the XENIX file
  110.     structure, ....
  111.  
  112.     ...
  113.  
  114.     XENIX used a forward slash as a separator, but versions 1.x of
  115.     MS-DOS, borrowing from the tradition of DEC operating systems,
  116.     already used the forward slash for switches in the command line,
  117.     so Microsoft, at IBM's request, decided to use the backslash as
  118.     the separator instead.
  119.  
  120. As the XENIX operating system is a spin-off from the UNIX operating system,
  121. I believe that it is clear that MS-DOS itself could be called a distant
  122. spin-off of the UNIX operating system.
  123.  
  124. ===========================================================================
  125.  
  126. Subject: 1.2 What books are available for learning Unix?
  127.  
  128. A:  See [misc.books.technical]   A Concise Guide to UNIX Books
  129.  
  130. Compiled by: Samuel Ko (kko@sfu.ca, sko@wimsey.bc.ca)
  131.  
  132. This is a good selection of the "best" books and documentation on
  133. UNIX and related areas.  The selection is based on i) recommendations
  134. from netnews readers, ii) the US/Canada sales figures, and iii) a bit
  135. of my own preference.
  136.  
  137. Among the subject areas covered:
  138.    A. General Unix Texts
  139.       a.  for beginning / intermediate users
  140.       b.  for intermediate / advanced users
  141.    B. Shells
  142.    C. Unix Editors
  143.    L. Other Lists
  144.    M. Other Books (experimental)
  145.  
  146. The latest version is also obtainable by anonymous ftp from rtfm.mit.edu
  147. (in /pub/usenet/news.answers/books). If you do not have ftp or netnews
  148. access you can get it by email from mail-server@rftm.mit.edu and the body
  149. of your request should be send usenet/news.answers/books/unix. 
  150.  
  151. ===========================================================================
  152.  
  153. Subject: 1.3 What are some basic commands and concepts for new users?
  154.  
  155. Submitted by haley@husc.harvard.edu
  156.  
  157. Hello and welcome to the wide world of Unix...
  158.  
  159. Unix is an operating system, similar to MS-DOS, only much more
  160. powerful. Some versions have over 300 commands in the basic system,
  161. not including specialized applications.
  162.  
  163. Of those commands there is a small hand-full that you will use many
  164. times, and here they are...
  165.  
  166. ---------------------------------------------------------------------------
  167. Command        Description        Example
  168. ---------------------------------------------------------------------------
  169. man    print out a manual page    on the
  170.     screen                man man
  171.                     man intro (try these!)
  172.  
  173. passwd    change your account password
  174.     This should be done the first
  175.     time you log on, especially
  176.     if you have no password. You
  177.     must know your old password to
  178.     change it.                passwd
  179.  
  180. ls    list a directory        ls
  181.  
  182. ls -CF    list a directory in columns,
  183.     marking direcotries with a /,
  184.     executable files with a *,
  185.     and logical links with a @.    ls -CF
  186.  
  187. mkdir    make a new directory as a sub-
  188.     directory of where you are now.
  189.                     mkdir newdir
  190. cd    change directory. Used to go
  191.     up or down in the directory
  192.     tree.                  cd dirname
  193.  
  194. vi    invoke vi editor. This is a    vi filename
  195.     screen editor, that is, a text
  196.     editor that makes use of the
  197.     full screen. You must know
  198.     this or another editor to make
  199.     use of "elm".  For those who
  200.     use one of the windowing
  201.     systems exclusively, you can
  202.     put off learning this as the
  203.     windowing systems have a
  204.     different e-mail system.
  205.  
  206. emacs    invoke emacs editor        emacs
  207.                     Note: run emacs with no
  208.                     argument and read the first screen.
  209.                                         Not available on all systems.
  210.  
  211. rm    remove a file. (note: this is
  212.     forever! Think before you erase) rm filename
  213.  
  214. rm -r    remove a directory, and
  215.     *everything* in it. See note
  216.     above.                  rm -r newdir
  217.  
  218.  
  219. elm    invoke elm mail program        Note: must know an editor
  220.                     first.
  221.  
  222. ---------------------------------------------------------------------------
  223. A quick computer primer: These commands are meant for use in a program
  224. called a "shell" which is the user interface to the underlying system
  225. programs. The major shells on this system are the Bourne shell "sh",
  226. the "C" shell, "csh", and the three windowing systems: X-windows,
  227. Sunview, and OpenWindows. (note that within the windowing systems you
  228. can use sh and csh {usually csh} in something called a shelltool.)
  229.  
  230. Commands in the Unix systems usually take some sort of argument, in
  231. the form of a name or other identifying information after the name of
  232. the program you wish to run.
  233.  
  234. Example:   command  modifier argument
  235.            |        |        |
  236.            ls       -CF      newdir
  237.  
  238. Running this program will print a directory listing on your screen of
  239. the directory "newdir" with other directories listed with a / after
  240. them, programs with a * after them, and logical links with a @ after
  241. them.
  242.  
  243. The unix system uses a hierarchical directory structure. This means
  244. that there is one "root" directory, and many sub-directories to store
  245. files in. Here is a small example of what one might look like:
  246.  
  247.              _______________(/)______________________________
  248.         /      /           \       \                 \
  249.              bin     lib           etc     home_____________     usr
  250.                 /                           /         \           \
  251.         sys          headcheese         \      headcheese3
  252.                                   \
  253.                                    headcheese2
  254.                                   /
  255.                            student
  256.                           /
  257.                          yourdir
  258.  
  259. The directories you must go through to find a particular file in
  260. "yourdir" are / then home then headcheese2 then student then yourdir.
  261. In Unix you specify this "path" as
  262.  
  263. /home/headcheese2/student/yourdir/filename
  264.  
  265. This is referred to as "filename"'s "full path". The first / must be
  266. there for it to be a full path. If you leave it off the shell will
  267. assume it is a "relative path" and look for the path to start in the
  268. directory you are now in. This is useful, as always having to refer to
  269. files by their full path would get tedious. If you were in "student"
  270. and wanted to refer to "filename" in "yourdir" you could call it
  271.  
  272. yourdir/filename
  273.  
  274. Or, if you are already in "yourdir", just
  275.  
  276. filename
  277.  
  278.  
  279. O.K. That ought to be enough to get you interested and started...
  280. Note to MS-DOS users: Unix has a hierarchical directory structure,
  281. like MS-DOS, but uses a / to separate parts of a file path instead of
  282. a \ (Back-slash).
  283.  
  284. For those using windowing systems, these commands can be used in the
  285. shell windows, usually called "commandtool" or "shelltool". Pay
  286. special attention to the "man" command.
  287.  
  288. After you understand these things, the thing to do is *PLAY*. Look
  289. around in the directory, and when you see something, do a "man" on it.
  290. When you think you want to know more, a trip to a math library is
  291. in order, or maybe a good bookstore. A good publisher is O'reilly
  292. (Nutshell). Addison Wesley is also good, but I think they are better
  293. for advanced stuff. 
  294.  
  295. Directories to look in: /bin /usr/bin /usr/local /usr/local/bin
  296. and just about any other "*bin" directory.
  297.  
  298. Note that this method is not time efficient at first. It is however
  299. MUCH better for retention. I went from knowing nothing about Unix to
  300. having the professor who got me started asking *me* for advice.
  301.  
  302. ===========================================================================
  303. Subject: 1.4 What Internet resources are available for learning Unix?
  304.  
  305. Submitted by: Jean-Marc Bonnaudet
  306.  
  307. A Unix-faq is posted in comp.unix.questions,comp.unix.shell,news.answers,
  308. comp.answers
  309.  
  310.  
  311. ===========================================================================
  312. 2. CASUAL QUESTIONS
  313. ===========================================================================
  314.  
  315. Subject: 2.1 What shells are friendliest, and how can one make shells 
  316. friendlier?
  317.  
  318. bash
  319. ----
  320. from the bash man page:
  321.  
  322. Bash is an sh-compatible command language interpreter that executes
  323. commands read from the standard input or from a file.  Bash also
  324. incorporates useful features from the Korn and C shells (ksh and csh).
  325.  
  326. Bash is ultimately intended to be a faithful implementation of the
  327. IEEE Posix Shell and Tools specification (IEEE Working Group 1003.2).
  328.  
  329. Bash is available from GNU sites, such as jaguar.cs.utah.edu:gnustuff
  330.  
  331. tcsh
  332. ----
  333. is an enhanced version of the Berkeley UNIX C shell csh.  It behaves
  334. exactly like the C  shell, with added utilities of:
  335.  
  336. 1) Command line editing using vi or Emacs commands, allowing you to
  337. correct errors in the current input line, or in previously input lines,
  338. much more easily than with sh or csh.
  339.  
  340. 2) Visual step up/down through the history list, letting you recall
  341. previously typed lines by simply pressing the up arrow key.
  342.  
  343. 3) Terminal mode sanity checking and resetting, which helps reduce
  344. problems for users who frequently switch between various types of
  345. terminals.
  346.  
  347. 4) Interactive command, file name and user name completion, allowing you
  348. to type the first few characters of a command, user name, or file name,
  349. then press the TAB key to automatically complete the word.
  350.  
  351. 5) File, directory, and user list display in the middle of a typed
  352. command.
  353.  
  354. 6) Interactive spelling correction of command, file, and user names.
  355.  
  356. 7) Lookup of command documentation in the middle of a typed command.
  357.  
  358. 8) Enhanced history mechanism for recalling previous commands.
  359.  
  360. 9) Automatic locking or logout after long periods of idle time.
  361.  
  362. tcsh is available via anonymous ftp from tesla.ee.cornell.edu, among other
  363. places.
  364.  
  365. zsh
  366. ---
  367. More information needed-- please submit!
  368.  
  369. ===========================================================================
  370. 3. EXPERT QUESTIONS
  371. ===========================================================================
  372.  
  373. Subject: 3.1 What on-line documentation / help systems are available free
  374.             on the Internet
  375.  
  376. Submitted by Chris Siebenmann <cks@hawkwind.utcs.toronto.edu>, edited.
  377.  
  378. Tkman; an X-based manual page viewer and browser. Far superior to
  379. xman; I think it's the current best approach to man page presentation.
  380.  
  381. WWW and Mosaic. HTML looks like the leading candidate for formatted
  382. and annotated text at the moment, so even if WWW dies, an investment
  383. in HTML-based tools will probably continue to be useful.  Word Perfect,
  384. BBEdit, and other vendors are beginning to support HTML editing.
  385.  
  386. Gopher seems to be the low-rent ASCII-based information delivery
  387. system of choice, but I'm not sure it's the right choice. For one
  388. thing, one has to fight menus to find things, which makes it reliant
  389. on the skill of the person who set them up. Combining gopher with WAIS
  390. for searching can create a more effective documentation system. 
  391. --
  392. * Noel Hunter,  Academic Systems Administrator,    Wake Forest University  *
  393. * noel@wfu.edu TEL:(910) 759-5812 MAIL:PO Box 7408 Winston-Salem, NC 27109 *
  394.