码迷,mamicode.com
首页 > 系统相关 > 详细

linux里source、sh、bash、./有什么区别

时间:2018-07-19 00:10:06      阅读:229      评论:0      收藏:0      [点我收藏+]

标签:lin   ash   get   pca   子shell   source   ref   脚本   nbsp   

https://www.cnblogs.com/pcat/p/5467188.html

 

source  .  这两个是一样的 。在当前shell运行脚本。脚本不需要 执行权限。

 

sh 在子shell运行脚本。脚本不需要 执行权限。

 

./ 在子shell运行脚本,脚本需要 执行权限(x)

linux里source、sh、bash、./有什么区别

标签:lin   ash   get   pca   子shell   source   ref   脚本   nbsp   

原文地址:https://www.cnblogs.com/654321cc/p/9333395.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!