Shell概述

一 Shell是什么


 
 
二 Shell在系统位置


 
 
三 Shell分类
Bourne Shell:从1979年起Unix就开始使用Bourne Shell,Bourne Shell的主文件名为sh。
C Shell:C Shell主要在BSD版的Unix系统中使用,其语法和C语法相类似而得名。
Shell的两种主要语法类型有Bourne和C,这两种语法彼此不兼容。Borune家族主要包括sh、ksh、Bash、psh、zsh;C家族主要包括:csh、tcsh。
 
四 实战
[root@localhost ~]# echo $SHELL
/bin/bash
[root@localhost ~]# cat /etc/shells
/bin/sh
/bin/bash
/sbin/nologin
/usr/bin/sh
/usr/bin/bash
/usr/sbin/nologin
/bin/tcsh
/bin/csh
[root@localhost ~]# sh
sh-4.2# exit
exit
[root@localhost ~]# csh
[root@localhost ~]# exit
exit
[root@localhost ~]# bash
[root@localhost ~]# exit
exit
 
 

猜你喜欢

转载自cakin24.iteye.com/blog/2391511