how to change shell in linux code example
Example: change shell
# Find shell in use
echo $0
#ouput: name of shell in use
# Check available shells
cat /etc/shells
# ouput: /bin/sh
# /bin/bash
# /usr/bin/bash
# /bin/rbash
# ...etc...
# find path to shell
type -a {shell name here}
# example: type -a bash
# output: bash is /usr/bin/bash
# bash is /bin/bash
# Change default shell
chsh -s {shell path here}
# example: chsh -s /bin/bash
# output: no output