作者:非策不劃小子白 | 来源:互联网 | 2024-11-11 18:58
shell脚本是给解释器运行的,那么当前系统有哪些解释器?which sh #sh是系统原始装好的编译器 查看系统提供的shell编译器版本cat /etc/shells系统提供了很多版本的shell
shell脚本是给解释器运行的,那么当前系统有哪些解释器?
which sh


查看系统提供的shell编译器版本
cat /etc/shells
系统提供了很多版本的shell,也提供了很多版本的shell编译器,就像python编译器中有python2还有python3,系统也为shell脚本提供不同版本的编译器,但是红帽linux系统默认的编译器是bash。