Per-directory case sensitivity and WSL

If you have used the Windows Subsystem for Linux, you’re probably aware that it allows you to treat your Windows file systems (mounted under /mnt/c, /mnt/d, etc.) as case sensitive. This means, among other things, that you can create files whose names differ only by case (e.g. foo.txt and FOO.TXT). However, using those files in…

1

Windows/WSL Interop with AF_UNIX

Starting in Windows Insider build 17093, a WSL application can communicate with a Windows application over Unix sockets. Back in December, we blogged about bringing AF_UNIX to Windows. Now, we’re building on that functionality. Consider a requirement where you want to run some kind of service as a Windows application. Additionally, you would like to…

0

Chmod/Chown WSL Improvements

We’ve added new file system features to WSL in Insider Build 17063. You can now set the owner and group of files using chmod/chown and modify read/write/execute permissions in WSL. You can also create special files like fifos, unix sockets, and device files. We’re introducing new mounting options with DrvFs for projecting permissions onto files alongside…

14

Share Environment Vars between WSL and Windows

Hey WSL users—we have more features to share with you! Our latest Windows Insider build lets you share environment variables between WSL and Windows. Starting with Build 17063, let’s look at how you can leverage the new “WSLENV” to enhance environmental variable interop between Win32/WSL. Summary For the pros who’ve already heard about WSLENV and…

4

Do not change Linux files using Windows apps and tools

Do not create/modify Linux files from Windows apps/tools
Do not create/modify Linux files from Windows apps/tools

I have to provide this guidance at least 2-3 times a day so instead I am publishing it here so everyone can find / link-to this guidance. There is one hard-and-fast rule when it comes to Bash on Windows: DO NOT, under ANY circumstances, create and/or modify Linux files using Windows apps, tools, scripts, consoles,…


More easily invoke Windows apps and tools from Bash on Windows

Along with support for ifconfig & network connection enumeration, Windows 10 Insider Build 14965 delivers a small but important change was made which will enable you more easily invoke Windows tools & applications from within Bash: Your Windows user environment path is now appended to the WSL path by default. This means you can now type…