Is there a config file that stores the default shell (bash, zsh, etc) for the current user ?
Asked
Active
Viewed 3,313 times
The default shell used by a user is contained in the seventh field of /etc/passwd or its equivalent.
$ getent passwd xxxxxx | awk -F: '{ print $7 }'
/bin/bash