【Linux】常见Linux默认的shell

常见的操作系统下的shell:

  • Linux下默认的shell是Bourne Again shell(bash)
  • Solaris和FreeBSD下默认的是Bourne shell(sh)
  • AIX系统下默认的是Kirn shell(ksh)

常见查看当前系统的shell环境的命令

方法一:

Linux:/ # echo $SHELL
/bin/bash

方法二:

Linux:/ # grep root /etc/passwd
root:x:0:0:root:/root:/bin/bash

结尾的/bin/bash就是用户登陆后的shell解释器

原文地址:https://www.cnblogs.com/OliverQin/p/10255278.html