linux查看有哪些shell可用

时间:2022-03-07 16:45:44

1.命令cat /etc/shells

[tansheng@localhost ~]$ cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/tcsh
/bin/csh
[tansheng@localhost ~]$

2./bin/sh是最原始的shell,现在几乎所有的linux都把bash shell设为默认的shell,即使/bin/sh 也是链接至/bin/bash

[tansheng@localhost ~]$ ls -l /bin/sh
lrwxrwxrwx. root root 10月 : /bin/sh -> bash
[tansheng@localhost ~]$