linux - 在 Ubuntu : I can not change files and get "file can not be found" even though the file exists?

标签 linux bash ubuntu file-permissions

当我更改 bash 脚本 (Ubuntu 10.04) 时,脚本会发生更改,但当我运行它时,它运行的是旧版本,所做的更改将被忽略。 还有一些文件,它只是说该文件不存在(即使它存在......)

我认为它与权限有关,即使我已确保文件被标记为对所有用户和可执行文件都是可读和可写的。但这也许是我需要在“更高层次”上进行更改的许可? 绝望

最佳答案

我更改了该文件夹的权限,然后重新启动了计算机。然后它起作用了(但必须重新启动,我认为这有点奇怪)。不管怎样,现在它可以工作了:)

关于linux - 在 Ubuntu : I can not change files and get "file can not be found" even though the file exists?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5404151/

相关文章:

c++ - 验证 Web 服务是否可用

bash - 如何使用 bash 合并两个文本文件

bash - 如何在不使用 if else 或 switch 或 while 循环的情况下使用 bash 获取当年每个月的最后一天?

linux - awk、pipe 和 tail -f 给出意外行为

java - 跨平台使用带目录的程序

linux - shell脚本将数组的值赋给变量

c - 系统调用参数 read(buf) 指向不可寻址的字节

linux - 混帐/Linux : What is a good strategy for maintaining a Linux kernel with patches from multiple Git repositories?

ubuntu - 在 Ubuntu 16.04 上使用 Mono 5.0 构建 MonoDevelop v7.0.0

bash - ubuntu 中的 Vim 无法识别我的环境变量