1

Is there a config file that stores the default shell (bash, zsh, etc) for the current user ?

faressoft
  • 423

1 Answers1

6

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