栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 前沿技术 > 大数据 > 大数据系统

bash和sh的区别

bash和sh的区别

1.bash and sh are two different shells. Basically bash is sh, with more features and better syntax. Most commands work the same, but they are different.

2.Having said that, you should realize /bin/sh on most systems will be a symbolic link and will not invoke sh.

3.In Ubuntu /bin/sh used to link to bash, typical behavior on Linux distributions. but now has changed to linking to another shell called dash.

suggest:
	I would use bash, as that is pretty much the standard (or at least most common, from my experience).
	
可能遇到的问题:
	In fact, problems arise when a bash script will use #!/bin/sh because the script-maker assumes the link is to bash when it doesn't have to be.
	
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/736375.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号