I am using Ubuntu on windows 10 and I need to move a file from a windows folder into ubuntu folder using the git bash terminal.
How would I do this?
I am using Ubuntu on windows 10 and I need to move a file from a windows folder into ubuntu folder using the git bash terminal.
How would I do this?
Actually, I'm not sure why, but you cannot move a folder from windows to WSL. It causes permission denied error on removing process (moving consists of copy & remove). But you can copy it instead using BASH.
Steps :
C://Users/Admin/
)cp -r /mnt/c/Users/Admin/AFolder ./FolderInWSL/
You should move the file from within Ubuntu, not the other way around, because if you copy from Windows to Ubuntu, you will run into permissions errors.
Sources:
See this for the solution: Copy Files from Windows to the Ubuntu Subsystem
So the moving would be from within the ubuntu shell something like:
mv /mnt/<windows_drive_letter>/<path>/<filename> .