【问题标题】:How to access my D:\ drive from the Ubuntu command line on Windows 10如何从 Windows 10 上的 Ubuntu 命令行访问我的 D:\ 驱动器
【发布时间】:2019-05-12 14:06:31
【问题描述】:

当我打开 Ubuntu Windows 商店应用程序和 bash 命令行(如果我没记错的话?)出现它的工作目录是 /home/username 。我想运行一个脚本,它在我的 Windows 上位于 D:\University... 。我可以这样做吗?如果可以,该怎么做?

我只尝试过 cd D:\ 但我得到“ -bash: cd: D:: No such file or directory”。到目前为止,我对 Linux 没有任何经验,所以我不知道 Windows 上的 Ubuntu 是否只能在其自己的位置运行,或者它是否可以访问我 PC 上的所有文件。

【问题讨论】:

    标签: windows-subsystem-for-linux


    【解决方案1】:

    您可以使用mnt 访问您的驱动器。

    root@user-pc: cd /mnt/d/your_destination_directory;

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-05-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多