Using WSL in an Enterprise

Recently, customers in an enterprise environment have asked if there is a way to install WSL without an internet connection. These companies had some machines that would benefit from having WSL, but don’t have an internet connection for security, logistics, or other reasons. Enter: The Microsoft Store for Business We (the WSL team) took a…

0

Windows Command-Line: The Evolution of the Windows Command-Line

Comparing Console in Windows 7 and Windows 10
Comparing Console in Windows 7 and Windows 10

Welcome to the second post in this “Windows Command-Line” series. In this post we’ll discuss some of the background & history behind the Windows Command-Line. Specifically, we’ll explore its humble origins in MS-DOS, to its modern-day incarnation supporting tools like PowerShell and Windows Subsystem for Linux.


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…

11

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…

2

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…

16

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

AF_UNIX comes to Windows

Introduction:  Beginning in Insider Build 17063, you’ll be able to use the unix socket (AF_UNIX) address family on Windows to communicate between Win32 processes. Unix sockets allow inter-process communication (IPC) between processes on the same machine.  Overview:  Support for the unix socket has existed both in BSD and Linux for the longest time, but, not…


[Cross Post] WSL Interoperability with Docker

We frequently get asked about running docker from within the Windows Subsystem for Linux (WSL). We don’t support running the docker daemon directly in WSL. But what you can do is call in to the daemon running under Windows from WSL. What does this let you do? You can create dockerfiles, build them, and run…

12

Background Task Support in WSL

Starting in Windows Insiders Build 17046, WSL supports background tasks (including daemons). In the past, if you opened WSL and started sshd, httpd, screen, or tmux  you needed to have a console window open to keep those tools running. But, starting with 17046, these processes will continue running in the background even after the last…

18

A Guide to Invoking WSL

There are a variety of ways to invoke the Windows Subsystem for Linux from Windows commandlines and they all behave a little differently. Let’s get to the bottom of it.    “wsl” The first (and recommended!) method will start up your default distro. Additionally, it starts the distro in the current working directory where you…

3

WSL & Console team ch…ch…ch…chaaaaanges!

Changes
Changes

Dear friends of WSL (Windows Subsystem for Linux, nee “Bash on [Ubuntu on] Windows”) & Windows Console: I would like to share with you some changes to our org’ that will benefit WSL, Windows Console and the Windows command-line in general moving forward. After shipping a major new release, Microsoft often shuffles teams and people…


Windows 10 Creators Update: What’s new in Bash/WSL & Windows Console

When Windows 10 Anniversary Update (AU) was shipped, the Windows Subsystem for Linux (WSL) was still far from complete, and was known to have many incompatibilities, especially with popular developer tools like node.js, Java, etc. However, it was important to get this exciting new feature into the hands of real users so that we could…


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…


ifconfig and network connection enumeration support in Windows 10 Insider build 14965

Enable network connection enumeration is currently the most-requested idea in our command-line User Voice. Or at least it was, until Windows 10 Insider build #14965 was released, which support for network connection enumeration: via the command-line using the ifconfig command via the /proc/net/dev virtual device via the Netlink socket’s NETLINK_ROUTE protocol’s RTM_GETLINK and RTM_GETADDR API Below is a…


Hanselman takes a tour around Bash on Windows

Hanselman Demo's Bash on Windows
Hanselman Demo's Bash on Windows

If you’re anything like me, you’re already overloaded with work/studies & life, and there’s just never enough time to go and dig into all the awesome new open-source projects, cool new tools, exciting new languages & platforms, and any amount of other technology that appears almost hourly these days. Wouldn’t it be great if someone…


New post and video on WSL filesystem features

One of the most frequent questions we get about Bash/WSL is how WSL provides a Linux-compatible filesystem atop NTFS and how filesystem interop works. Well, wonder no more dear reader – in this new blog post and the video below, Sven Groot explains to Seth Juarez how WSL’s filesystem support works.  


New post & video on how WSL System Calls work

One of the most interesting things about the Windows Subsystem for Linux (WSL) is its ability to run unmodified Linux ELF64 binaries atop the Windows Kernel. “How?” is a question we receive regularly from many of you. Ask and ye shall receive 🙂 In this new post, Stephen Hufnagel explains to Seth Juarez how WSL System Calls…