Personal tools
You are here: Home Docs Help! Reference Manuals Bash Guide for Beginners Bash and Bash scripts Advantages of the Bourne Again SHell Features only found in bash Bash startup files Invoked as an interactive login shell, or with `--login'

1.2.2.2.1. Invoked as an interactive login shell, or with `--login'

Up one level

-

Interactive means you can enter commands. The shell is not running because a script has been activated. A login shell means that you got the shell after authenticating to the system, usually by giving your user name and password.

Files read:

  • /etc/profile

  • ~/.bash_profile, ~/.bash_login or ~/.profile: first existing readable file is read

  • ~/.bash_logout upon logout.

Error messages are printed if configuration files exist but are not readable. If a file does not exist, bash searches for the next.

(no ads!)