ubuntu 使用chmod 出现:cannot access '777': No such file or directory
时间: 2024-03-28 13:41:52 浏览: 151
这个错误提示表示 `chmod` 命令在当前工作目录中找不到名为 `777` 的文件或目录。
`chmod` 命令用于更改文件或目录的权限。使用 `chmod` 命令的语法如下:
```
chmod 选项 权限 文件或目录
```
在上面的语法中,`选项` 是可选的,用于指定如何更改权限。`权限` 是您要为文件或目录设置的新权限,`文件或目录` 是您要更改权限的文件或目录的名称。
在您的情况下,似乎您正在尝试为名为 `777` 的文件或目录设置权限,而该文件或目录在当前工作目录中不存在。请确保您在 `chmod` 命令中输入了正确的文件或目录名称,并且它存在于当前工作目录中。
相关问题
chmod: cannot access '777': No such file or directory
This error message indicates that the `chmod` command cannot find a file or directory named `777` in the current working directory.
The `chmod` command is used to change the permissions of a file or directory. The syntax for using the `chmod` command is:
```
chmod options permissions file
```
In the above syntax, `options` are optional and can be used to specify how the permissions should be changed. `permissions` are the new permissions that you want to set for the file or directory, and `file` is the name of the file or directory that you want to change the permissions for.
In your case, it seems like you are trying to set permissions for a file or directory named `777`, which does not exist in the current working directory. Make sure that you have entered the correct file or directory name in the `chmod` command and that it exists in the current working directory.
chmod: cannot access data: No such file or directory
这个错误提示表明你想要更改一个名为"data"的文件的权限,但是系统找不到这个文件。可能是因为文件不存在或者路径不正确。你可以使用ls命令检查当前目录下是否存在"data"文件,或者使用绝对路径指定文件路径。如果文件确实存在,那么你可能没有足够的权限来更改它的权限。你可以使用sudo命令以管理员身份运行chmod命令。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)