轻量级虚拟机wsl

wsl是windows的子虚拟机

  • 与windows相互访问内存
  • 使用windows硬件gpu等
  • 轻便方便win cmd即可使用

常用指令

#安装
wsl --install

wsl --list --online
#可用版本

wsl --list --verbose
#已安装

wsl ~
#跳到主目录

wsl --install -d Ubuntu-20.04
wsl --status
wsl --distribution <Distribution Name> --user <User Name>
# wsl中
/mnt/c  # C:盘
/mnt/d  # D:盘

# windows中
explorer.exe .



posted @ 2022-08-18 13:10  InsiApple  阅读(69)  评论(0编辑  收藏  举报