1.7. Which Shell Am I Running?
You can usually tell which family your shell belongs to by a character in the prompt it displays. Bourne-type shells, such as bash , usually have $ in the prompt. The C shell uses % (but tcsh users often use >).
If your shell has superuser (Section 1.18) privileges, though, the prompt typically ends with a hash, #.
To check the shell that runs automatically when you log in to Unix, type one of these commands (the second is for systems that use NIS, Sun's Network Information Service, to manage network-wide files):
% grepyourloginname /etc/passwd % ypmatch yourloginname passwd
--TOR and SP
Copyright © 2003 O'Reilly & Associates. All rights reserved.