问题如图:

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

 

 

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

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

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

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

 

 

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

相关文章:

  • 2022-12-23
  • 2021-11-27
  • 2021-07-03
  • 2021-08-14
  • 2021-06-07
  • 2022-02-11
  • 2022-02-11
  • 2021-04-15
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-08
  • 2021-07-26
  • 2021-08-30
  • 2022-01-01
  • 2021-05-26
相关资源
相似解决方案