Your Question: How Do I Know Which Linux Shell?

Your Question: How Do I Know Which Linux Shell?
Contents

How do I know bash or shell?

To test the above, say bash is the default shell, try echo $SHELL , and then in the same terminal, get into some other shell (KornShell (ksh) for example) and try $SHELL . You will see the result as bash in both cases. To get the name of the current shell, Use cat /proc/$$/cmdline .

How do you specify which shell is used when you login?

chsh command syntax

Where, -s {shell-name} : Specify your login shell name. You can obtained list of avialble shell from /etc/shells file. User-name : It is optional, useful if you are a root user.

Robert Thorne
Author

Robert Thorne

Robert Thorne covers electric vehicle innovations, autonomous driving systems, global mobility trends, and automotive engineering developments.