There are many kinds of shells in Linux, such as KSH,BASH,CSH and so on.
What kind of shell is used by the current user, we can view it in/etc/passwd
linux-37:/# cat/etc/passwd |grep-i smsweb1--smsweb1 for the user name you want to view
Smsweb1:x:111:201::/home/smsweb1:/bin/bash
You can see that the SMSWEB1 user defaults to bash.
Change, we can use the CHSH command.
Smsweb1@linux-37:~> Chsh
Changing login shell for SMSWEB1.
Password:
Enter the new value, or press return for the default.
Login Shell [/bin/bash]:/bin/ksh
Shell changed.
--View the available shells
Smsweb1@linux-37:~> chsh-l
This paper url:http://www.bianceng.cn/os/linux/201410/45604.htm
/bin/ash
/bin/bash
/bin/bash1
/bin/csh
/bin/false
/bin/ksh
/bin/sh
/bin/tcsh
/bin/true
/bin/zsh
/usr/bin/csh
/usr/bin/ksh
/usr/bin/passwd
/usr/bin/bash
/usr/bin/rbash
/usr/bin/tcsh
/usr/bin/zsh
This article is from "Richard's notes-accumulate micro Cheng" blog, please be sure to keep this source http://zxf261.blog.51cto.com/701797/735650