The Stack Overflow podcast is back! Listen to an interview with our new CEO.
1 of 2

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, zsh.
  • The second command tells me the first occurrence in my $PATH the bash command 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 /bin/bash
  • On Solaris /bin is a symlink to ./usr/bin
  • The default $PATH on Solaris is /usr/bin:/bin