October 2001
Intermediate to advanced
1040 pages
22h 50m
English
If the Bourne shell is your login shell, it follows a chain of processes before you see a shell prompt.

The first process to run is called init, PID 1. It gets instructions from a file called inittab (System V), or it spawns a getty process (BSD). These processes open up the terminal ports, providing a place where standard input comes from and a place where standard output and error go, and they put a login prompt on your screen. The /bin/login program is then executed. The login program prompts for a password, encrypts and verifies the password, sets up an initial environment, and starts up the ...