user database
The system list of user accounts, traditionally the file /etc/passwd, recording each user's ID, home directory and login shell.
In more detail
The SHELL variable is filled in from here when you log in, and chsh edits the shell field for you. On macOS the same information lives in a directory service, but the commands that read it behave alike.
Related terms
- login shell — The shell your account starts when you log in, recorded in the user database and shown by the SHELL variable.
- chsh — The command that changes your login shell to another program listed in /etc/shells.
- home directory — Your personal directory, such as /home/ada on Linux or /Users/ada on macOS, where your files and settings live.
Taught in
- Which Shell Am I In, And Getting Bash Five — Bash Scripting & Command Line Automation