How to use win explorer to create folders for Bash on Ubuntu on Windows?
How can I use the Windows Explorer to create folders or files in my home directory using "Bash on Ubuntu on Windows"?
I tried the following:
- Enter C:\Users{user}\AppData\Local\lxss{username} in the Windows Explorer
- Create a folder named "scripts" using Windows Explorer
- Open Bash on Ubuntu on Windows
- Run
ls -a
RESULT: total 0
Are there any plans to make something like this work?
P.S. Workaround-ish:
- I used
mkdir
&touch
in bash to create folders & files e.g.scripts/menu.py
- I used the Windows Explorer & Notepad++ to edit menu.py
- I ran the script with
python scripts/menu.py
Solution 1:
We STRONGLY recommend against modifying any Linux files/folders from Windows in the manner described above: Doing so will likely result in data loss and/or corruption:
There's a reason we made the lxss folder hidden and system ;)
It's fine to access Windows from Bash/Linux, but we've not yet done the work to persist and manage Linux file permissions & metadata when accessing files under .../lxss/ using Windows tools & apps.
[2016-11-17: Update] To expand on this question and its answer, I wrote-up a more thorough explanation here: https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/