View the shell the currently logged in user is using

echo $SHELL

View the shell the currently logged in user is using.


cat /etc/shells
View all shells in the current system


chsh -s /bin/bash
Switch shells, bash here is just the name of a shell, or other shells, such as csh, ksh and other shells.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325815444&siteId=291194637