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

  1. Path: senator-bedfellow.mit.edu!dreaderd!not-for-mail
  2. Message-ID: <unix-faq/faq/contents_1084272547@rtfm.mit.edu>
  3. Supersedes: <unix-faq/faq/contents_1083581613@rtfm.mit.edu>
  4. Expires: 1 Jun 2004 10:49:07 GMT
  5. X-Last-Updated: 1996/06/11
  6. From: tmatimar@isgtec.com (Ted Timar)
  7. Distribution: world
  8. Newsgroups: comp.unix.questions,comp.unix.shell,comp.answers,news.answers
  9. Followup-To: comp.unix.questions
  10. Organization: ISG Technologies, Inc
  11. Subject: Unix - Frequently Asked Questions (Contents) [Frequent posting]
  12. Approved: news-answers-request@MIT.Edu
  13. Originator: faqserv@penguin-lust.MIT.EDU
  14. Date: 11 May 2004 10:49:59 GMT
  15. Lines: 170
  16. NNTP-Posting-Host: penguin-lust.mit.edu
  17. X-Trace: 1084272599 senator-bedfellow.mit.edu 576 18.181.0.29
  18. Xref: senator-bedfellow.mit.edu comp.unix.questions:195433 comp.unix.shell:165510 comp.answers:57113 news.answers:271069
  19.  
  20. Archive-name: unix-faq/faq/contents
  21. Version: $Id: contents,v 2.9 1996/06/11 13:08:13 tmatimar Exp $
  22.  
  23. The following seven articles contain the answers to some Frequently Asked
  24. Questions often seen in comp.unix.questions and comp.unix.shell.
  25. Please don't ask these questions again, they've been answered plenty
  26. of times already - and please don't flame someone just because they may
  27. not have read this particular posting.  Thank you.
  28.  
  29. This collection of documents is Copyright (c) 1994, Ted Timar, except
  30. Part 6, which is Copyright (c) 1994, Pierre Lewis and Ted Timar.
  31. All rights reserved.  Permission to distribute the collection is
  32. hereby granted providing that distribution is electronic, no money
  33. is involved, reasonable attempts are made to use the latest version
  34. and all credits and this copyright notice are maintained.
  35. Other requests for distribution will be considered.  All reasonable
  36. requests will be granted.
  37.  
  38. All information here has been contributed with good intentions, but
  39. none of it is guaranteed either by the contributors or myself to be
  40. accurate.  The users of this information take all responsibility for
  41. any damage that may occur.
  42.  
  43. Many FAQs, including this one, are available on the archive site
  44. rtfm.mit.edu in the directory pub/usenet/news.answers.
  45. The name under which a FAQ is archived appears in the "Archive-Name:"
  46. line at the top of the article.  This FAQ is archived as
  47. "unix-faq/faq/part[1-7]".
  48.  
  49. These articles are divided approximately as follows:
  50.  
  51.       1.*) General questions.
  52.       2.*) Relatively basic questions, likely to be asked by beginners.
  53.       3.*) Intermediate questions.
  54.       4.*) Advanced questions, likely to be asked by people who thought
  55.            they already knew all of the answers.
  56.       5.*) Questions pertaining to the various shells, and the differences.
  57.       6.*) An overview of Unix variants.
  58.       7.*) An comparison of configuration management systems (RCS, SCCS).
  59.  
  60. The following questions are answered:
  61.  
  62.       1.1)  Who helped you put this list together?
  63.       1.2)  When someone refers to 'rn(1)' or 'ctime(3)', what does
  64.               the number in parentheses mean?
  65.       1.3)  What does {some strange unix command name} stand for?
  66.       1.4)  How does the gateway between "comp.unix.questions" and the
  67.               "info-unix" mailing list work?
  68.       1.5)  What are some useful Unix or C books?
  69.       1.6)  What happened to the pronunciation list that used to be
  70.               part of this document?
  71.  
  72.       2.1)  How do I remove a file whose name begins with a "-" ?
  73.       2.2)  How do I remove a file with funny characters in the filename ?
  74.       2.3)  How do I get a recursive directory listing?
  75.       2.4)  How do I get the current directory into my prompt?
  76.       2.5)  How do I read characters from the terminal in a shell script?
  77.       2.6)  How do I rename "*.foo" to "*.bar", or change file names
  78.               to lowercase?
  79.       2.7)  Why do I get [some strange error message] when I
  80.               "rsh host command" ?
  81.       2.8)  How do I {set an environment variable, change directory} inside a
  82.               program or shell script and have that change affect my
  83.               current shell?
  84.       2.9)  How do I redirect stdout and stderr separately in csh?
  85.       2.10) How do I tell inside .cshrc if I'm a login shell?
  86.       2.11) How do I construct a shell glob-pattern that matches all files
  87.             except "." and ".." ?
  88.       2.12) How do I find the last argument in a Bourne shell script?
  89.       2.13) What's wrong with having '.' in your $PATH ?
  90.       2.14) How do I ring the terminal bell during a shell script?
  91.       2.15) Why can't I use "talk" to talk with my friend on machine X?
  92.       2.16) Why does calendar produce the wrong output?
  93.  
  94.       3.1)  How do I find the creation time of a file?
  95.       3.2)  How do I use "rsh" without having the rsh hang around
  96.               until the remote command has completed?
  97.       3.3)  How do I truncate a file?
  98.       3.4)  Why doesn't find's "{}" symbol do what I want?
  99.       3.5)  How do I set the permissions on a symbolic link?
  100.       3.6)  How do I "undelete" a file?
  101.       3.7)  How can a process detect if it's running in the background?
  102.       3.8)  Why doesn't redirecting a loop work as intended?  (Bourne shell)
  103.       3.9)  How do I run 'passwd', 'ftp', 'telnet', 'tip' and other interactive
  104.               programs from a shell script or in the background?
  105.       3.10) How do I find the process ID of a program with a particular
  106.             name from inside a shell script or C program?
  107.       3.11) How do I check the exit status of a remote command
  108.             executed via "rsh" ?
  109.       3.12) Is it possible to pass shell variable settings into an awk program?
  110.       3.13) How do I get rid of zombie processes that persevere?
  111.       3.14) How do I get lines from a pipe as they are written instead of
  112.             only in larger blocks?
  113.       3.15) How do I get the date into a filename?
  114.       3.16) Why do some scripts start with #! ... ?
  115.  
  116.       4.1)  How do I read characters from a terminal without requiring the user
  117.               to hit RETURN?
  118.       4.2)  How do I check to see if there are characters to be read without
  119.               actually reading?
  120.       4.3)  How do I find the name of an open file?
  121.       4.4)  How can an executing program determine its own pathname?
  122.       4.5)  How do I use popen() to open a process for reading AND writing?
  123.       4.6)  How do I sleep() in a C program for less than one second?
  124.       4.7)  How can I get setuid shell scripts to work?
  125.       4.8)  How can I find out which user or process has a file open or is using
  126.             a particular file system (so that I can unmount it?)
  127.       4.9)  How do I keep track of people who are fingering me?
  128.       4.10) Is it possible to reconnect a process to a terminal after it has
  129.             been disconnected, e.g. after starting a program in the background
  130.             and logging out?
  131.       4.11) Is it possible to "spy" on a terminal, displaying the output
  132.             that's appearing on it on another terminal?
  133.  
  134.       5.1)  Can shells be classified into categories?
  135.       5.2)  How do I "include" one shell script from within another
  136.             shell script?
  137.       5.3)  Do all shells have aliases?  Is there something else that
  138.             can be used?
  139.       5.4)  How are shell variables assigned?
  140.       5.5)  How can I tell if I am running an interactive shell?
  141.       5.6)  What "dot" files do the various shells use?
  142.       5.7)  I would like to know more about the differences between the
  143.             various shells.  Is this information available some place?
  144.  
  145.       6.1)  Disclaimer and introduction.
  146.       6.2)  A very brief look at Unix history.
  147.       6.3)  Main Unix flavors.
  148.       6.4)  Main Players and Unix Standards.
  149.       6.5)  Identifying your Unix flavor.
  150.       6.6)  Brief notes on some well-known (commercial/PD) Unices.
  151.       6.7)  Real-time Unices.
  152.       6.8)  Unix glossary.
  153.       6.9)  Acknowledgements.
  154.  
  155.       7.1)  RCS vs SCCS:  Introduction
  156.       7.2)  RCS vs SCCS:  How do the interfaces compare?
  157.       7.3)  RCS vs SCCS:  What's in a Revision File?
  158.       7.4)  RCS vs SCCS:  What are the keywords?
  159.       7.5)  What's an RCS symbolic name?
  160.       7.6)  RCS vs SCCS:  How do they compare for performance?
  161.       7.7)  RCS vs SCCS:  Version Identification.
  162.       7.8)  RCS vs SCCS:  How do they handle with problems?
  163.       7.9)  RCS vs SCCS:  How do they interact with make(1)?
  164.       7.10) RCS vs SCCS:  Conversion.
  165.       7.11) RCS vs SCCS:  Support
  166.       7.12) RCS vs SCCS:  Command Comparison
  167.       7.13) RCS vs SCCS:  Acknowledgements
  168.       7.14) Can I get more information on configuration management systems?
  169.  
  170.       If you're looking for the answer to, say, question 2.5, look in
  171.       part 2 and search for the regular expression "^2.5)".
  172.  
  173. While these are all legitimate questions, they seem to crop up in
  174. comp.unix.questions or comp.unix.shell on an annual basis, usually
  175. followed by plenty of replies (only some of which are correct) and then
  176. a period of griping about how the same questions keep coming up.  You
  177. may also like to read the monthly article "Answers to Frequently Asked
  178. Questions" in the newsgroup "news.announce.newusers", which will tell
  179. you what "UNIX" stands for.
  180.  
  181. With the variety of Unix systems in the world, it's hard to guarantee
  182. that these answers will work everywhere.  Read your local manual pages
  183. before trying anything suggested here.  If you have suggestions or
  184. corrections for any of these answers, please send them to to
  185. tmatimar@isgtec.com.
  186.  
  187. -- 
  188. Ted Timar - tmatimar@isgtec.com
  189. ISG Technologies Inc., 6509 Airport Road, Mississauga, Ontario, Canada L4V 1S7
  190.