Shell
SHELL
Default login shell of the user.
Ubuntu
Debian
Arch
Fedora
CentOS
SUSE
Alpine
macOS
FreeBSD
Verified: 2026-05-12
Syntax
$echo $SHELL
Examples
$echo $SHELL
$chsh -s /bin/zsh
Typical use cases
?
Standard usage
SHELL --help
Note
Shows login shell, not always the currently running subshell.
Export