Answers for "change shell"

0

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
Posted by: Guest on February-06-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language