login shell

The shell your account starts when you log in, recorded in the user database and shown by the SHELL variable.

In more detail

The SHELL variable keeps naming your login shell even after you start a different shell, so it cannot tell you which shell you are in now; ask ps -p $$ instead. Change your login shell with chsh -s, and only to a path listed in /etc/shells.

Example

echo "$SHELL"

Related terms

Taught in

References