从本地D盘下拷贝数据到ubuntu子系统下
- Powershell 管理员打开执行
- /mnt/d 此处是本地Windows系统的路径表示
- /opt ubutu 子系统目录
wsl -d Ubuntu-22.04 -u root -- bash -c '
cp -rf /mnt/d/nginx.conf /opt/
'
从ubuntu子系统中拷贝数据到本地D盘下
- Powershell 管理员打开执行
- /mnt/d 此处是本地Windows系统的路径表示
- /opt ubutu 子系统目
wsl -d Ubuntu-22.04 -u root -- bash -c '
cp -rf /opt/nginx.conf /mnt/d
'