Quick Overview of Shell Operation

When you log in or otherwise invoke the shell, it checks system variables and the /etc/passwd file to determine who you are and where your login session is supposed to begin. It then searches the system for default configuration files and looks for configuration files in your home directory. Typically, these system files set up a few aliases, do some security checks, configure your prompt, and perform half a dozen other user- and site-specific tasks limited only by your imagination. It then prints out a prompt and waits for you to enter a command.

When you do enter a command, the shell first parses it. It identifies any redirection of standard input, output, and error, any background detachments, looks up any ...

Get Linux® Desk Reference, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.