home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / infoguide / advanced / unix / unix-faq-contents < prev    next >
Text File  |  1997-12-01  |  8KB  |  166 lines

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