Change shell
Find the current shell
Section titled “Find the current shell”There are a few ways to determine the current shell
echo $0ps -p $$echo $SHELLChange the shell
Section titled “Change the shell”To change the current bash run these commands
export SHELL=/bin/bashexec /bin/bashto change the bash that opens on startup edit .profile and add those lines
List available shells
Section titled “List available shells”To list available login shells :
cat /etc/shellsExample:
$ cat /etc/shells# /etc/shells: valid login shells/bin/sh/bin/dash/bin/bash/bin/rbashSyntax
Section titled “Syntax”- echo $0
- ps -p $$
- echo $SHELL
- export SHELL=/bin/bash
- exec /bin/bash
- cat /etc/shells