[Linux]可执行文件不显示绿色了,怎么办?

问题如图:

 我希望aa.sh显示成绿色的

经过排查,原来是aa.sh没有执行权限

通过chmod +x filename,filename就变成绿色了

 

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

chmod 755 file 绿色
chmod 644 file 白色 

另如果没有chmod + x 给aa.sh增加执行权限,aa.sh是不能执行的

wangju@wangju-HP-348-G4:~$ ./aa.sh
bash: ./aa.sh: Permission denied
原文地址:https://www.cnblogs.com/kaerxifa/p/12161961.html