Shell 名稱 | 歷史 |
sh | 早期 UNIX 所用的 shell,由 Steven Bourne 發展出來。 |
csh,tcsh,zsh | C shell 和一些衍生版本,原始是由 Bill Joy 設計。 |
ksh,pdksh | Korn shell 和 public domain 的同類,由 David Korn |
設計,在很多商業版的 UNIX 系統,內定都為此 shell。 | |
bash | bash(Bourne Again Shell)為 Linux 主要的 shell。 |
bash 為 GNU 計畫之一,它提供了原始程式碼。 | |
bash 在很多方面很類似 Korn shell。 |
[root@dywOffice ~]# cat /etc/shells /bin/ash /bin/bash /bin/bsh /bin/csh /bin/sh /bin/tcsh [root@dywOffice ~]# ll /bin/*sh lrwxrwxrwx 1 root root 11 Jan 12 16:14 /bin/ash -> ../sbin/bsh* -rwxr-xr-x 1 root root 725160 Aug 24 2006 /bin/bash* lrwxrwxrwx 1 root root 11 Jan 12 16:14 /bin/bsh -> ../sbin/bsh* lrwxrwxrwx 1 root root 4 Jan 12 16:14 /bin/csh -> tcsh* lrwxrwxrwx 1 root root 4 Jan 12 16:14 /bin/rbash -> bash* lrwxrwxrwx 1 root root 4 Jan 12 16:14 /bin/sh -> bash* -rwxr-xr-x 1 root root 324144 Jan 2 2006 /bin/tcsh* [root@dywOffice ~]# ll /sbin/bsh -rwxr-xr-x 1 root root 81988 Jul 2 2006 /sbin/bsh*
[root@dywOffice ~]# cat /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/bin/sh dywang:x:500:100:De-Yu Wang:/home/dywang:/bin/bash ftp:x:75:75:system user for proftpd:/var/ftp:/bin/false calculus:x:504:75::/home/ftp/pub:/bin/false [root@dywOffice ~]# ll /bin/false -rwxr-xr-x 1 root root 12144 Aug 31 06:26 /bin/false*