【问题标题】:cd Desktop gives an error no such file/ directory in terminalcd Desktop 给出错误 no such file/ directory in terminal
【发布时间】:2013-11-25 03:15:25
【问题描述】:

在 Mac 上的终端中,当我使用 cd 桌面通过终端查看文件时,出现错误“没有这样的文件或目录” 当我检查当前工作目录时,它显示我在 /home/ 我不明白为什么突然它不起作用。 我尝试使用 .profile 文件进行一些别名和路径更改。 .profile 文件中的这种更改会导致此错误吗?

【问题讨论】:

    标签: linux macos command cd


    【解决方案1】:

    尝试使用 cd(不带参数)跳转到您的主目录,该目录应该是 /Users/username。然后使用 cd 桌面。或者,您可以执行“cd ~/Desktop”

    【讨论】:

      【解决方案2】:

      首先在home文件夹中创建一个桌面文件夹,然后打开命令提示符

      另外,尝试 " cd desktop " 命令不会出错。在运行 Command 之前,请务必记住区分大小写字词。

      【讨论】:

        猜你喜欢
        • 2016-11-01
        • 1970-01-01
        • 1970-01-01
        • 2020-03-19
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-04-24
        相关资源
        最近更新 更多