chsh

I know that chsh is used for changing your shell but I can't where this information is stored.

echo $SHELL shows bash so I know I have used the command, but I'd like to know where this is held.

Anyone know?
 
The user database, mate. Traditionally /etc/passwd but that file has long since been replaced with /etc/master.passwd.
I looked in /etc/passwd like ChatGPT suggested but there wasn't anything there, but using HI ;) it was where you suggested.

I changed it to zsh, but forget I hadn't yet installed it.

OOPS!!

Can't login.
 
Back
Top