從本地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
'