Linux中有多种shell

Linux 的 Shell 种类众多,常见的有:

  • Bourne Shell(/usr/bin/sh或/bin/sh)
  • Bourne Again Shell(/bin/bash)
  • C Shell(/usr/bin/csh)
  • K Shell(/usr/bin/ksh)
  • Shell for Root(/sbin/sh)
  • ……

1. 说明:

在一般情况下,人们并不区分 Bourne Shell 和 Bourne Again Shell 所以,比如, 在shell脚本中的  #!/bin/sh,它同样也可以改为 #!/bin/bash