linux中.sh文件不显示绿色怎么办?

1.原因是.sh文件没有执行权限

通过chmod +x xxx.sh ,这样就变成绿色了

2.linux文件颜色与读写权限的关系:

chmod 755 file 绿色
chmod 644 file 白色 
 

猜你喜欢

转载自blog.csdn.net/weixin_43167662/article/details/130381747