首页 > 技术文章 > linux中.sh文件不显示绿色怎么办?
xingqiang 2021-05-24 13:59 原文
1.原因是.sh文件没有执行权限
通过chmod +x xxx.sh ,这样就变成绿色了
2.linux文件颜色与读写权限的关系:
chmod 755 file 绿色 chmod 644 file 白色