Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
在文件夹下明明有sh脚本,却无法执行,提示没有文件
Experiences and Insight
1283
views ·
5
replies ·
To
floor
Go
bibichuan
deepin
2019-03-09 17:52
Author
我在一个文件夹下右键打开终端,然后使用sudo ./start执行脚本,却提示没有那个文件或目录,是怎么回事。
Reply
Like 0
Favorite
View the author
All Replies
白菜
deepin
2019-03-09 18:11
#1
sudo chmod +x start
sudo ./start
Copy the Code
Reply
Like 0
View the author
139******14
deepin
2019-03-10 17:24
#2
楼上正解,执行没有执行权限的就会提示文件不存在
Reply
Like 0
View the author
bibichuan
deepin
2019-03-11 05:40
#3
奥,收到了,谢谢。这个文件夹其实是在windows分区下的,为什么没有权限,谁给他的权限,这个没有手动操作过,还是个疑问。
Reply
Like 0
View the author
要讲武德
deepin
2019-03-11 06:01
#4
提示不友好,应该叫 没有名为start的可执行文件.
Reply
Like 0
View the author
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
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Events
More