如何使用 Windows 资源管理器使用“Windows 上的 Ubuntu 上的 Bash”在我的主目录中创建文件夹或文件?
我尝试了以下方法:
- 在 Windows 资源管理器中输入 C:\Users{user}\AppData\Local\lxss{username}
- 使用 Windows 资源管理器创建一个名为“scripts”的文件夹
- 在 Windows 上的 Ubuntu 上打开 Bash
- 跑
ls -a
结果:总共 0
有没有计划做这样的事情?
PS解决方法-ish:
- 我在 bash 中使用
mkdir&touch来创建文件夹和文件,例如scripts/menu.py
- 我使用 Windows Explorer & Notepad++ 来编辑 menu.py
- 我运行了脚本
python scripts/menu.py