查看系统有几种shell,可以通过以下命令查看

查看系统有几种shell,可以通过以下命令查看:

cat /etc/shells

mac下:

localhost:~ ylchou$ cat /etc/shells
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
# one of these shells.
/bin/bash
/bin/csh
/bin/ksh
/bin/sh
/bin/tcsh
/bin/zsh

centos6.6下

[root@aleiye bin]# cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/bin/dash
/bin/tcsh
/bin/csh


你可能感兴趣的:(linux,shell,centos,mac)