Windows Subsystem for Linux allows you to run Linux programs in Windows!
- Activate Developer Mode in Settings -> Update & Security -> For developers
- Enable Windows Subsystem for Linux (Beta) in Control Panel -> Programs -> Turn Windows Features On or Off
- Restart computer
- Start
bash.exe
and create new user
- navigate to "/mnt/$DRIVE/Users/$USER" to get to Windows Personal Folder
- it emulates syscalls. If a Linux syscall has a direct mapping to a Windows NT syscall, just call the Windows one. If there is not a corresponding Windows syscall (e.g. fork), lxcore.sys does some extra work in wrapping the call before calling a Windows syscall.
- there are two filesystesms: VolFs and DriveFs. VolFs is the virtual Linux filesystem and gives you /proc, /sys
/home, etc. You as a Windows user cannot access these files from Windows (I think). However, DriveFs, mounted
at /mnt/$DRIVE gives you access to the Windows filesystem and its corresponding restrictions (e.g. filename
characters). Thus you can use your favorite Unix tools (
vim
,grep
, and pipes) to modify Windows files!!!! Maybe VolFs stands for Virtualization of Linux Filesystem?)