home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / unix-faq / user-friendly < prev   
Encoding:
Internet Message Format  |  1997-12-17  |  17.5 KB

  1. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!tribune.meitca.com!ulowell.uml.edu!cam-news-feed2.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!news.maxwell.syr.edu!Supernews60!supernews.com!Supernews69!not-for-mail
  2. From: noel@camelcity.com
  3. Newsgroups: comp.unix.user-friendly,comp.answers,news.answers
  4. Subject: comp.unix.user-friendly Frequently Asked Questions (FAQ)
  5. Supersedes: <cuuf-faq-1-847825069@ols.net>
  6. Followup-To: comp.unix.user-friendly
  7. Date: 16 Dec 1997 10:49:26 -0500
  8. Organization: ols.net - OnLine South
  9. Lines: 412
  10. Approved: news-answers-request@MIT.Edu
  11. Distribution: world
  12. Message-ID: <cuuf-faq-1-882287364@ols.net>
  13. Reply-To: noel@camelcity.com (CUUF FAQ Coordinators)
  14. NNTP-Posting-Host: 2175@206.27.1.1
  15. Keywords: FAQ CUUF UNIX
  16. X-Posting-Frequency: posted on the 5th and 20th of each month
  17. X-Content-Currency: This FAQ changes regularly.
  18. Xref: senator-bedfellow.mit.edu comp.unix.user-friendly:5152 comp.answers:29308 news.answers:118929
  19.  
  20. Posted-By: auto-faq 3.1.1.2
  21. Archive-name: unix-faq/user-friendly
  22.  
  23. FAQ (Frequently-asked Questions) for comp.unix.user-friendly
  24.  
  25. ------------------------------
  26.  
  27. Subject: Recent changes
  28. TCSH sites updates (Jan 23, 1996)
  29. Moved access (Jan 3, 1996)
  30. Gopher access to FAQ no longer available (Sep 7, 1995)
  31. Added automatic posting with Supersedes header (Feb. 6, 1995)
  32. Added user-friendly file manager (Jan. 9, 1995)
  33. Changed location ot tkman (Nov. 8, 1994)
  34. Changed pathname of archives at ftp.wfu.edu (July 6, 1994)
  35. Corrected path name for tkman (Subject 3.1) (July 5, 1994)
  36.  
  37. ------------------------------
  38.  
  39. Subject: Acknowledgements
  40.  
  41. This FAQ is automatically posted on the 5th and 20th of each month. The
  42. latest version of the FAQ is available in the following ways: 
  43.  
  44. http://www.camelcity.com/~noel/usenet/cuuf-FAQ.htm
  45.  
  46. THE PURPOSE OF THIS FAQ is to archive "Frequently Asked Questions", and by
  47. so doing, to improve the quality of the newsgroup discussion by reducing
  48. redundant questions.  The FAQ also serves as a reference to new readers,
  49. providing one resource which will answer many of their questions. It does
  50. not matter if a FAQ is necessarily appropriate to the group's charter-- if
  51. it appears frequently, its inclusion in the FAQ will reduce the frequency. 
  52.  
  53. Since this is a new newsgroup, there currently are very few FAQ's. If
  54. users consider a topic worth incorporating into this FAQ, they are
  55. encouraged to compile and email any FAQs to noel@camelcity.com FAQs should try
  56. to roughly incorporate which category(ies) of users the FAQ applies to (if
  57. applicable) i.e., novice, casual, expert, etc.  If you do NOT want your
  58. name credited with the FAQ, please say so. 
  59.  
  60. The FAQ is maintained by Noel Hunter <noel@camelcity.com> and
  61. Lachlan Cranswick <lachlan@dmp.csiro.au>
  62.  
  63. ------------------------------
  64.  
  65. Subject: Contents
  66.  
  67. 1. Novice (General questions about Unix and this newsgroup)
  68.     1.1 Why did the people who wrote Unix use different commands from
  69.             MS-DOS; why does Unix use funny abbreviations for commands, etc?
  70.         1.2 What books are available for learning Unix?
  71.         1.3 What are some basic commands and concepts for new users?
  72.     1.4 What Internet resources are available for learning Unix?
  73.  
  74. 2. Casual (Now we're getting into "User Friendly")
  75.     2.1 What shells are friendliest, and how can one make shells
  76.     friendlier?
  77.  
  78. 3. Expert
  79.     3.1 What on-line documentation / help systems are available free
  80.             on the Internet
  81.  
  82. ------------------------------
  83.  
  84. Subject: 1. NOVICE QUESTIONS
  85.  
  86. ------------------------------
  87.  
  88. Subject: 1.1 Why did the people who wrote Unix use different commands from
  89.              MS-DOS; why does Unix use funny abbreviations for commands, etc?
  90.  
  91. This question, and questions of a general Unix nature are not appropriate
  92. for this newsgroup.  Direct them to comp.unix.questions or other 
  93. comp.unix groups.  However, since these questions do occur frequently, 
  94. here is a brief summary of responses:
  95.  
  96. Submitted by Randolph J. Herber, paraphrased here:
  97.  
  98. Unix came first...
  99.  
  100. Unix was written before MS-DOS, which is a distant relative, tracing some
  101. of its roots to Unix, but also incorporating other influences.  According
  102. to _The Bell System Technical Journal_ (Vol. 57, No. 6, July-August, 1978
  103. ``Forward''), "The UNIX story begins with Ken Thompson's work on a
  104. cast-off PDP-7 minicomputer in 1969." According to _The MS-DOS
  105. Encyclopedia_ (Microsoft Press), page 19, MS-DOS "ran on the prototype for
  106. the first time in 1981."
  107.  
  108. The abbreviations... 
  109.  
  110. The primary causes of the abbreviations were the 10 characters per
  111. second terminal speeds and the small system memories (e.g. 128KB).
  112.  
  113. Although Microsoft based some of MS-DOS on Unix, they also incorporated 
  114. elements of CP/M and other sources.  For this reason, some commands are
  115. identical to Unix, while others are different.
  116.  
  117. ------------------------------
  118.  
  119. Subject: 1.2 What books are available for learning Unix?
  120.  
  121. This question also is not appropriate to this newsgroup, but is frequently
  122. asked. See the newsgroup misc.books.technical instead.  Here is a summary 
  123. of resources:
  124.  
  125. A Concise Guide to UNIX Books
  126. Compiled by: Samuel Ko (kko@sfu.ca, sko@wimsey.bc.ca)
  127.  
  128. This is a good selection of the "best" books and documentation on
  129. UNIX and related areas.  The selection is based on i) recommendations
  130. from netnews readers, ii) the US/Canada sales figures, and iii) a bit
  131. of my own preference.
  132.  
  133. Among the subject areas covered:
  134.    A. General Unix Texts
  135.       a.  for beginning / intermediate users
  136.       b.  for intermediate / advanced users
  137.    B. Shells
  138.    C. Unix Editors
  139.    L. Other Lists
  140.    M. Other Books (experimental)
  141.  
  142. The latest version is also obtainable by anonymous ftp from rtfm.mit.edu
  143. (in /usenet/news.answers/books). If you do not have ftp or netnews
  144. access you can get it by email from mail-server@rtfm.mit.edu and the body
  145. of your request should be send usenet/news.answers/books/unix. 
  146.  
  147. ------------------------------
  148.  
  149. Subject: 1.3 What are some basic commands and concepts for new users?
  150.  
  151. Another novice question which should be directed to the newsgroup 
  152. comp.unix.questions.  But novices can't know these things, so we should 
  153. help them at least briefly:
  154.  
  155. Basic commands and concepts, originally submitted by haley@husc.harvard.edu.
  156.  
  157. Unix is an operating system, similar to MS-DOS, only much more powerful.
  158. Some versions have over 300 commands in the basic system, not including
  159. specialized applications. 
  160.  
  161. Command Primer
  162. -------------- 
  163. These commands are meant for use in a program called a "shell", which is
  164. the user interface to the underlying programs that make up Unix. There are
  165. several different shells which are widely used, so the prompts you see on
  166. your screen, and the responses you see may vary slightly.  However, the
  167. commands here should work in all of the shells. Note that users with
  168. Graphical User Interfaces (X Windows, Openview, etc) may have to use the
  169. "shelltool" or "command window" to use these commands. 
  170.  
  171. When you enter Unix commands, you will usually enter two or three words: 
  172. the "command" itself, "modifier(s)" which change the way the command
  173. works, and "argument(s)" which provide the command with additional
  174. information.  Each word in the command is separated by a space, and
  175. modifiers are preceded by a hyphen (-).  Here is an example of the "ls"
  176. command with a modified and argument: 
  177.  
  178. Example:   command  modifier argument
  179.            |        |        |
  180.            ls       -CF      newdir
  181.  
  182. Typing this command will print a directory listing on your screen of the
  183. directory "newdir".  The modifiers "-CF" tell the ls command to list other
  184. directories listed with a / after them, and to list programs with a * after 
  185. them, and logical links with a @ after them. 
  186.  
  187. The unix system uses a "hierarchical directory structure; to store files
  188. on its disks.  This type of structure is like an upside-down tree, with
  189. one "root" directory (like the root and trunk of a tree), and many
  190. sub-directories (like branches) to store files in. Here is a small example
  191. of what one might look like: 
  192.  
  193.              _______________(/)______________________________
  194.             /      /           \       \                     \
  195.           bin     lib           etc     home_____________     usr
  196.                  /                     /        \        \
  197.                 sys              headcheese      \        headcheese3
  198.                                                   \
  199.                                                    headcheese2
  200.                                                   /
  201.                                            student
  202.                                           /
  203.                                      yourdir
  204.  
  205. The directories you must go through to find a particular file in "yourdir"
  206. are "/" then "home" then "headcheese2" then "student" then "yourdir". In
  207. Unix you call the directories you must go through to acces a file the
  208. "path", and you type in the above path like this: 
  209.  
  210. /home/headcheese2/student/yourdir/filename
  211.  
  212. We call this "filename"'s "full path". The first "/" must be there for it
  213. to be a full path. If you leave it off then the shell will assume it is a
  214. "relative path" and look for the path to start in the directory you are
  215. currently in, called the "current working directory". This is useful, as
  216. always having to refer to files by their full path would get tedious. If
  217. you were in "student" and wanted to refer to "filename" in "yourdir" you
  218. could call it:
  219.  
  220. yourdir/filename
  221.  
  222. Or, if you are already in "yourdir", just
  223.  
  224. filename
  225.  
  226. O.K. That ought to be enough to get you interested and started...
  227. Note to MS-DOS users: Unix has a hierarchical directory structure,
  228. like MS-DOS, but uses a / to separate parts of a file path instead of
  229. a \ (Back-slash).
  230.  
  231. Playing around
  232. --------------
  233. After you understand these things, the thing to do is *PLAY*. Look around
  234. in the directories which store commands, and when you see something, do a
  235. "man" on it. When you think you want to know more, a trip to a math
  236. library is in order, or maybe a good bookstore. A good publisher is
  237. O'reilly (Nutshell). Addison Wesley is also good, but I think they are
  238. better for advanced stuff. 
  239.  
  240. Directories to look in: /bin /usr/bin /usr/local /usr/local/bin and just
  241. about any other "*bin" directory. 
  242.  
  243. Note that this method is not time efficient at first. It is however MUCH
  244. better for retention. I went from knowing nothing about Unix to having the
  245. professor who got me started asking *me* for advice. 
  246.  
  247. There is a small hand-full of commands that you will use many times, and 
  248. here they are...
  249.  
  250. man    Print out a manual page    on the screen.  If you know the name of a 
  251. command, you can read the manual by typing "man command".  For example, 
  252. typing "man ls" will display the manual for the ls command.  If you want 
  253. to search all of the man pages for a certain word (on some systems), you 
  254. can type "man -k word".  For example, typing "man -k mail" would list 
  255. the names of all of the man pages pertaining to mail.
  256.                                 man intro
  257. passwd    Change your account password. This should be done the first time 
  258. you log on, especially if you have no password. You must know your old
  259. password to change it.  To change you password, type "passwd".  Then enter
  260. your old (current) password, and the desired new password (twice).  Note 
  261. that your passwords will NOT appear on the screen as you type them.
  262.  
  263. ls    List the contents of a directory.  Typing "ls" alone will list 
  264. the contents of the current working directory.  If you want to see a 
  265. specific directory, you can type "ls directoryname".  For example,
  266. "ls /pub" will list the contents of the /pub directory (if there is 
  267. one one your system).  Adding "-CF" options will give you a more 
  268. detailed listing in columns, marking directories with a /, executable 
  269. files with a *, and logical links with a @.  For example, typing "ls -CF"
  270. will give a detailed listing of the current directory.
  271.  
  272. mkdir    Make a new directory as a sub-directory of where you are now.    
  273. For example, "mkdir work" will create a sub-directory named "work" in 
  274. your current directory.
  275.  
  276. cd    Change directory. Used to go up or down in the directory tree.
  277. For example, to change to a sub-directory named "work" in the current 
  278. directory, type "cd work".  Typing "cd .." will change to the parent 
  279. directory, the directory one level above the current directory.
  280.  
  281. vi     Invoke the vi editor. This is a screen editor, that is, a text editor
  282. that makes use of the full screen. You must know this or another editor to
  283. make use of "elm".  For those who use one of the windowing systems
  284. exclusively, you can put off learning this as the windowing systems have
  285. adifferent e-mail system.
  286.  
  287. rm    Remove a file. (note: this is forever! Think before you erase)
  288. For example, to remove a file named "foo", type "rm foo".  Adding the 
  289. "-r" option allows you to delete an entire sub-directory and ALL files 
  290. and directories beneath it.  BE CAREFUL!  For example, to delete a 
  291. directory named "work", and all files and sub-directories in "work", type 
  292. "rm -rf work".
  293.  
  294. elm    Invoke the elm mail program.  Note: must know an editor
  295. first.    
  296.  
  297. ------------------------------
  298.  
  299. Subject: 1.4 What Internet resources are available for learning Unix?
  300.  
  301. Submitted by: Jean-Marc Bonnaudet
  302.  
  303. The Unix-faq is posted to the newgroups: 
  304. comp.unix.questions,comp.unix.shell,news.answers, comp.answers.
  305.  
  306.  
  307. ------------------------------
  308.  
  309. Subject: 2. CASUAL QUESTIONS
  310.  
  311. ------------------------------
  312.  
  313. Subject: 2.1 What shells are friendliest, and how can one make shells 
  314. friendlier?
  315.  
  316. bash
  317. ----
  318. Bash is an sh-compatible command language interpreter that executes
  319. commands read from the standard input or from a file.  Bash also
  320. incorporates useful features from the Korn and C shells (ksh and csh).
  321.  
  322. Bash is ultimately intended to be a faithful implementation of the
  323. IEEE Posix Shell and Tools specification (IEEE Working Group 1003.2).
  324.  
  325. Bash is available from GNU sites, such as jaguar.cs.utah.edu:gnustuff
  326.  
  327. tcsh
  328. ----
  329. is an enhanced version of the Berkeley UNIX C shell csh.  It behaves
  330. exactly like the C  shell, with added utilities of:
  331.  
  332. 1) Command line editing using vi or Emacs commands, allowing you to
  333.    correct errors in the current input line, or in previously input lines,
  334.    much more easily than with sh or csh.
  335. 2) Visual step up/down through the history list, letting you recall
  336.    previously typed lines by simply pressing the up arrow key.
  337. 3) Terminal mode sanity checking and resetting, which helps reduce
  338.    problems for users who frequently switch between various types of
  339.    terminals.
  340. 4) Interactive command, file name and user name completion, allowing you
  341.    to type the first few characters of a command, user name, or file name,
  342.    then press the TAB key to automatically complete the word.
  343. 5) File, directory, and user list display in the middle of a typed
  344.    command.
  345. 6) Interactive spelling correction of command, file, and user names.
  346. 7) Lookup of command documentation in the middle of a typed command. 
  347. 8) Enhanced history mechanism for recalling previous commands.
  348. 9) Automatic locking or logout after long periods of idle time.
  349.  
  350. You can get the tcsh distribution from
  351.  
  352. ftp://ftp.deshaw.com/pub/tcsh
  353.   or
  354. ftp://ftp.primate.wisc.edu/pub/csh-tcsh-book
  355. http://www.primate.wisc.edu/software/csh-tcsh-book
  356.  
  357. You can also get extended installation instructions at the primate.wisc.edu
  358. locations, in the form of a downloadable chapter from the tcsh book.
  359.  
  360. (Sites submitted by Paul DuBois dubois@primate.wisc.edu)
  361.  
  362. zsh
  363. ---
  364. (paraphrased from the zsh faq, posted to comp.answers monthly)
  365. zsh is a UNIX command interpreter (shell) which of the standard shells
  366. most resembles the Korn shell (ksh), although it is not completely
  367. compatible.  It includes enhancements of many types, notably in the
  368. command-line editor, options for customising its behaviour, filename
  369. globbing, features to make C-shell (csh) users feel more at home and
  370. extra features drawn from tcsh (another `custom' shell).
  371.  
  372. zsh is available for users east of the Atlantic from:
  373.   carlo.phys.uva.nl(145.18.218.21):/pub/bas/zsh/zsh-2.4beta.tar.gz
  374. The latest full release is in zsh-2.3.1.tar.gz in the same directory.
  375. and
  376.   ftp.sterling.com:/zsh
  377.  
  378. The 2.3.1 distribution is also available from ftp.uu.net and mirrors
  379. in the directory pub/shells/zsh.
  380.  
  381. MC File Manager
  382. ---------------
  383. a portable user-friendly file manager for Unix systems licensed under the
  384. GNU GPL.  The program is available in ftp.nuclecu.unam.mx in the directory
  385. /linux/local and its name is mc-1.2.tar.gz. 
  386.  
  387. ------------------------------
  388.  
  389. Subject: 3. EXPERT QUESTIONS
  390.  
  391. ------------------------------
  392.  
  393. Subject: 3.1 What on-line documentation / help systems are available free
  394.             on the Internet
  395.  
  396. Submitted by Chris Siebenmann <cks@hawkwind.utcs.toronto.edu>, edited.
  397.  
  398. TkMan
  399. ----- 
  400. an X-based manual page viewer and browser. Far superior to
  401. xman; I think it's the current best approach to man page presentation.
  402. Available via anonymous ftp from:
  403.  
  404. ftp://ftp.cs.berkeley.edu/ucb/people/phelps/tcltk/tkman.tar.Z
  405.  
  406. TkInfo
  407. ------
  408. an X-based hypertext interface to the GNU texinfo .info file format.
  409.  
  410. World Wide Web (WWW), Mosaic and Lynx
  411. -------------------------------------
  412. HTML looks like the leading candidate for formatted and annotated text at
  413. the moment, so even if WWW dies, an investment in HTML-based tools will
  414. probably continue to be useful.  Word Perfect, BBEdit, and other vendors
  415. are beginning to support HTML editing. 
  416.  
  417. Gopher
  418. ------
  419. seems to be the low-rent ASCII-based information delivery system of
  420. choice, but I'm not sure it's the right choice. For one thing, one has to
  421. fight menus to find things, which makes it reliant on the skill of the
  422. person who set them up. Combining gopher with WAIS for searching can
  423. create a more effective documentation system. 
  424.  
  425. End of cuuf-FAQ
  426. ***************
  427. -- 
  428. * Noel Hunter                            noel@camelcity.com *
  429. * The power behind the pages...    http://www.camelcity.com *
  430. * Free database, shopping software -   CGI, PHP, Javascript *
  431.  
  432.