bash: cd: ./Desktop: No such file or directory
时间: 2023-10-15 08:07:09 浏览: 66
您好!对于您的错误信息,可能是因为在当前目录下不存在名为"Desktop"的文件夹。请确保您输入的路径是正确的,并且文件夹存在。您可以使用命令"ls"来查看当前目录下的文件和文件夹,以确认是否存在名为"Desktop"的文件夹。如果不存在,请先创建该文件夹,然后再尝试使用"cd"命令进行切换。希望对您有所帮助!
相关问题
cd ~/.config/autostart/ -bash: cd: /root/.config/autostart/: No such file or directory
如果在执行`cd ~/.config/autostart/`命令时出现了`No such file or directory`的错误提示,说明该目录在你的系统中不存在。
这可能是因为你当前的用户目录下没有`.config`目录,或者该目录下没有`autostart`子目录。在某些发行版中,这个目录可能被放置在其他位置。
你可以尝试使用以下命令来查找正确的自启动目录:
```plaintext
find ~ -name autostart
```
该命令会在当前用户的主目录下搜索名为`autostart`的目录。如果找到目录,则将路径用于后续步骤中的创建`.desktop`文件。
如果你仍然无法找到自启动目录,可以尝试其他方法来实现软件的自启动,例如使用`init.d`、`systemd`、`cron`或`rc.local`等方式。具体的实现方式可能因不同的系统和发行版而有所不同。
终端中执行”cd ~/Desktop/scripts“报错-bash: cd: /Users/bytedance/Desktop/scripts: No such file or directory
这个错误提示说明在你的电脑中找不到`~/Desktop/scripts`这个目录。可能的原因有:
1. 你的电脑中确实没有这个目录。你可以通过在终端中执行`ls ~/Desktop`命令来查看是否有`scripts`子目录。
2. 你的电脑中有这个目录,但是你没有执行`cd ~/Desktop/scripts`命令之前没有在`~/Desktop`目录下。你可以通过在终端中执行`pwd`命令来查看当前所在的目录。
3. `~/Desktop/scripts`这个路径中包含了波浪号(`~`)符号。波浪号表示当前用户的home目录。如果你执行`cd ~/Desktop/scripts`命令时使用的是另一个用户的身份,那么这个路径就不是你期望的路径了。
相关推荐
![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)
![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)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)