Home>

I am running ubuntu with bash on windows (windows subsystem for linux).
If i drag and drop a file from Windows Explorer to the ubuntu folder (C: \ Users \ username \ AppData \ Local \ Packages \ CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc \ LocalState \ rootfs \ home), you will not be able to see it on ubuntu.
At present, we have created a file/directory with the same name in ubuntu and then saved it from windows, and this works for some reason.
However, it is very difficult if there are many files.
Is there any good way?

  • Answer # 1

    Windows C: \ is mounted at/mnt/c on the WSL side.
    Reference the file created on the Windows folder side from the WSL side.

    Please refer to this article for an old article.
    Accessing the WSL directory from Windows may cause file corruption.
    Note that if you mess with Ubuntu files from Windows on Bash on Windows

  • Answer # 2

    Be careful if you mess with Ubuntu files from Windows on Bash on Windows

    p>

    It is NG to change the WSL area from Windows as described in this article.
    Although it is troublesome, let's work by either of the following methods.

    Work by moving to the Windows path with bash

    Copy and work with Windows files with bash