The other answers are good, but I like to give a demonstration.
% echo $SHELL /bin/zsh % which bash /bin/bash
- The first command tells me which shell I'm running. In this case,
- The second command tells me the first occurrence in my
bashcommand can be found.
One does not imply the second, nor vice versa.
I'm not going to restate other people's answers but in addition to that I want to point out some things.
- The default shell on Solaris is
- On Solaris
/binis a symlink to
- The default
$PATHon Solaris is