:-1: error: Failed to create remote directories: mkdir: cannot create directory '/opt/untitled1': Permission denied
时间: 2023-11-28 08:50:26 浏览: 73
这个错误提示是因为你没有权限在 `/opt` 目录下创建名为 `untitled1` 的文件夹。通常情况下,只有管理员用户才有权限在系统的根目录下创建文件夹。
你可以尝试在其他目录下创建文件夹,比如在你的用户目录下创建一个名为 `untitled1` 的文件夹:
```
mkdir ~/untitled1
```
或者你可以使用 `sudo` 命令以管理员权限创建文件夹:
```
sudo mkdir /opt/untitled1
```
需要输入管理员密码才能成功执行该命令。
相关问题
mkdir: cannot create directory ‘/opt/sks/vp1’: No such file or directory
This error message suggests that the directory '/opt/sks/vp1' does not exist on your system. To create this directory, you can use the following command:
```
sudo mkdir -p /opt/sks/vp1
```
This will create the directory '/opt/sks/vp1' along with any necessary parent directories that may be missing. The 'sudo' command is used to gain administrative privileges, which may be required to create directories in certain locations on the system.
mkdir /share/brick1 mkdir: cannot create directory ‘/share/brick1’: No such file or directory
As an AI language model, I cannot perform file operations on your system. However, the error message suggests that the directory "/share" does not exist, so you need to create it first before creating the subdirectory "/brick1". You can do this by running the following command:
```
mkdir -p /share/brick1
```
The "-p" option ensures that any missing parent directories will be created as well.
相关推荐
![txt](https://img-home.csdnimg.cn/images/20210720083642.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.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)