【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

直接進入就可以。

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