将文件从windows系统中复制到wsl的ubuntu系统中

  1. cd /mnt
    转到 /mnt 目录下,你可以看到自己的盘信息。
mango@wanzhouyi:/$ cd mnt/
mango@wanzhouyi:/mnt$ pwd
/mnt
mango@wanzhouyi:/mnt$ ll
total 28
drwxr-xr-x 11 root  root  4096 Oct  2 23:44 ./
drwxr-xr-x 20 root  root  4096 Oct  6 23:20 ../
drwxrwxrwx  1 mango mango 4096 Oct  3 12:45 c/
drwxrwxrwx  1 mango mango 4096 Oct  7 00:28 d/
drwxrwxrwx  1 mango mango 4096 Oct  6 22:47 e/
drwxrwxrwx  2 root  root  4096 Oct  2 23:44 f/
drwxrwxrwx  2 root  root  4096 Oct  2 23:44 h/
drwxrwxrwx  2 root  root  4096 Oct  2 23:44 i/
drwxrwxrwx  2 root  root  4096 Oct  2 23:44 j/
drwxrwxrwx  2 root  root  4096 Oct  2 23:44 k/
drwxrwxrwt  2 root  root    60 Oct  6 23:20 wsl/
mango@wanzhouyi:/mnt$
  1. 找到想转到wsl子系统下的文件。
    例如我想将下载后放在D盘根目录下的sentinel-dashboard-1.8.5.jar文件转到子系统下。我需要的文件在以下路径下/mnt/d/
  2. 选择复制或者移动你的文件到指定目录下,可以使用cp也可以使用mv,这里使用的是cp
sudo cp sentinel-dashboard-1.8.5.jar /data01/sentinel/
posted @ 2022-10-07 00:40  周XX  阅读(3504)  评论(0编辑  收藏  举报