Termux存储权限
我一直在尝试使用此目录访问内部存储:
/storage/Code/workspace/try/css/index.scss
,
但是Termux告诉我bash
:
/storage/code/workspace/try/css/index.scss:否此类文件或目录。
如何解决此问题?
I have been trying to access my internal storage using this directory:
/storage/Code/workspace/Try/css/index.scss
But termux tells me bash
:
/storage/Code/workspace/Try/css/index.scss: No such file or directory.
How can I fix this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要发行此命令
termux-setup-storage
有关更多详细信息,请参见链接我希望它对您有用
You need to issue this command
termux-setup-storage
For more details here's a link I hope it works for you
您的问题是,您没有正确编写目录名称。如果您不知道内部存储名称或内部存储的根目录名称(ex:
/storage/emulator/0
可能在其他设备上有所不同),则可以找到使用此简单df
命令,众所周知,Android的内部或外部存储位于/storege
中,因此我们只能抓取或过滤该文件夹名称信息仅通过说df | GREP Storage
此处
/storage/emulation
是内部存储的入口点,某些设备的目录名称为'/storage/amulation/emulation/0'。因此,您的目录应该像/storage/emulation/0/code/workspace/try/css/index.scss
或可能不同。您可以通过编写
df
命令来观看更多有关目录的信息:谢谢。
Your issue was, you didn't write directory name properly. If you don't know about your internal storage name or internal storage's root directory name (ex:
/storage/emulator/0
which can be different on others devices) you can find that with this simpledf
command, and as we know that, android's internal or external storage is situated in/storage
, so we can only grab or filter that folder name info only by sayingdf | grep storage
Here
/storage/emulated
is the internal storage's entry point and somtimes the directory name for some devices is '/storage/emulated/0'. So your directory should be somthing like,/storage/emulated/0/Code/workspace/Try/css/index.scss
or maybe different for you.You can watch more infos about your directories by writting the
df
command without any filter:Thanks.