:-1: error: Failed to create remote directories: mkdir: cannot create directory '/opt/untitled1': Permission denied
时间: 2023-11-28 21:50:27 浏览: 30
这个错误提示表明你没有权限在根目录下创建一个名为`untitled1`的文件夹。你可以尝试使用其他路径,比如在当前用户的主目录下创建一个文件夹,例如:
```bash
mkdir ~/untitled1
```
或者使用`sudo`命令以管理员身份运行创建文件夹的命令,例如:
```bash
sudo mkdir /opt/untitled1
```
注意:使用`sudo`命令需要输入管理员密码。
相关问题
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.