在文件夹下明明有sh脚本,却无法执行,提示没有文件
Tofloor
poster avatar
bibichuan
deepin
2019-03-09 17:52
Author
我在一个文件夹下右键打开终端,然后使用sudo ./start执行脚本,却提示没有那个文件或目录,是怎么回事。
Reply Favorite View the author
All Replies
avatar
白菜
deepin
2019-03-09 18:11
#1
  1. sudo chmod +x start
  2. sudo ./start
Copy the Code
Reply View the author
avatar
139******14
deepin
2019-03-10 17:24
#2
楼上正解,执行没有执行权限的就会提示文件不存在
Reply View the author
avatar
bibichuan
deepin
2019-03-11 05:40
#3
奥,收到了,谢谢。这个文件夹其实是在windows分区下的,为什么没有权限,谁给他的权限,这个没有手动操作过,还是个疑问。
Reply View the author
avatar
要讲武德
deepin
2019-03-11 06:01
#4
提示不友好,应该叫 没有名为start的可执行文件.
Reply View the author
avatar
electricface
deepin
2019-03-11 17:19
#5
本帖最后由 electricface 于 2019-3-11 09:20 编辑

正常的没权限提示应该是这样:

./a.sh
bash: ./a.sh: 权限不够
或者
./a.sh
fish: The file './a.sh' is not executable by this user

这是 sudo 的提示的问题

Reply View the author