gpt4 book ai didi

python - 使用 gitbash 终端将文件从 Windows 10 移动到 ubuntu 文件夹

转载 作者:行者123 更新时间:2023-12-04 19:09:00 26 4
gpt4 key购买 nike

我在 Windows 10 上使用 Ubuntu,我需要使用 git bash 终端将文件从 windows 文件夹移动到 ubuntu 文件夹。

我该怎么做?

最佳答案

实际上,我不确定为什么,但是您不能将文件夹从 Windows 移动到 WSL。它会在删除过程中导致权限被拒绝错误(移动包括复制和删除)。但是您可以使用 BASH 来复制它。
脚步 :

  • 将您的文件夹放入用户目录(例如 C://Users/Admin/ )
  • 打开你的 ubuntu 终端
  • 递归地复制它。例如:

  • cp -r /mnt/c/Users/Admin/AFolder ./FolderInWSL/

    关于python - 使用 gitbash 终端将文件从 Windows 10 移动到 ubuntu 文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61793379/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com