From: Andy Goth <[EMAIL PROTECTED]>

> Has anyone ever bothered pressing Ctrl+D at the shell prompt?  Just
try
> it.  On my computer, it appears to be another way of logging out.

    Yes, it is.  It's also the "end-of-file" character in Unix.

    Just a bit of theory:  In Unix, everything is a file, including the
keyboard, mouse, hard drive, etc, hence all the /dev/something stuff.
The shell takes input from from "standard input" (usually your keyboard)
and processes it.  When it gets the EOF character, it figures that its
job is done, and so it closes.

    Some shells (like csh, I think) have an option to disable this
behavior.

Reply via email to