【Linux】Windows 10 安装应用商店 ubuntu 终端后访问本地文件

Linux 小白。因为比赛需要用到一些 Linux 命令,因此不得不用终端。

应用商店安装 ubuntu 后,想跳出根目录,访问 windows 文件,尝试了网上说的几个方法,都不太好使:

mount
# 本来想挂载D盘的
fdisk -l
fdisk: cannot open /proc/partitions: No such file or directory
cat /proc/partitions
cat: /proc/partitions: No such file or directory

最终,自己尝试了直接 cd ,竟然好使了。

cat /proc/mounts
...
C:\134 /mnt/c drvfs rw,noatime,uid=1000,gid=1000,case=off 0 0
D:\134 /mnt/d drvfs rw,noatime,uid=1000,gid=1000,case=off 0 0

如上,首先是找到了 d 盘的位置。

cd /mnt/d
ls

直接进入就可以。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章