常用操作
查看当前 WSL 运行版本
WSL: Am I running version 1 or version 2?
# wsl -l -v NAME STATE VERSION * Ubuntu Stopped 1
操作文件系统
宿主机磁盘
Windows 10 22H2
WSL 1.2.5.0
Ubuntu 22.04 LTS
在 Ubuntu 中,宿主机的磁盘位于 /mnt/{c,d,e,f,…}
挂载新磁盘
How to Mount Windows Network Drives in WSL
当主机插入 U 盘或者其他磁盘设备后,需要挂载到 WSL 中:
mount -t drvfs M: /mnt/m