Location / root / on Windows 10 Ubuntu

I installed bash on Ubuntu on Windows 10, a preview version for insiders. Windows terminals, however, are rather cumbersome to use if they are used for an Ubuntu terminal. I was wondering if there is a way to access the Ubuntu file system from Windows so that I can do development in another editor and run the code from Ubuntu-bash?

+6
source share
2 answers

Any terminal program that can open a Windows command prompt should be able to run bash (bash.exe launches the Linux Linux subsystem), so you don’t have to go in cycles with the command.exe file.

Conemu (mentioned by @anotherfred) or Cmder are some of the fan favorites. You can also use Powershell if you like it.

You can access your Windows files from the WSL in / mnt / c (and / mnt / d if you have a d: drive, etc.). This works relatively well if you want to use command line tools and still access files using your favorite Windows editor.

You can see your WSL file system from Windows at:

%LocalAppData%\lxss\rootfs 

although I won’t contact him from within Windows.

/ root will be under

 %LocalAppData%\lxss\rootfs\root 

and

/ home will be under

 %LocalAppData%\lxss\rootfs\home 

The two are installed separately so that they are not removed when the WSL is removed.

+6
source

It's the other way around: bash accesses the Windows file system, which you will find in /mnt/c . Your files (should be) on your Windows file system, and you can edit them as usual.

If you just don't like the terminal interface, try something like conemu ( https://conemu.imtqy.com/ ). This is a convenient and pleasant interface for the command shell, powershell or any other shell that you like.

+1
source

All Articles