Quick Answer: What Is My Shell Linux?
Contents Use the Following Linux or Unix Commands: Ps -P $$ – Display Your Current Shell Name Reliably. Echo “$Shell” – Print the Shell for the Current User...
Use the following Linux or Unix commands: ps -p $$ – Display your current shell name reliably. echo “$SHELL” – Print the shell for the current user but not necessarily the shell that is running at the movement.
How do I find my Terminal shell?
You can simply use echo $0 command to check which shell you are using and <name_of_the_shell> –version to check the version of the shell. (eg. bash –version ).
Must Read
How do I know if I have zsh or bash?
Update your Terminal preferences to open the shell with the command /bin/bash , as shown in the screenshot above. Quit and restart Terminal. You should see “hello from bash”, but if you run echo $SHELL , you will see /bin/zsh .