Even if you leave your WSL Linux session, it remains active. This allows you to quickly return where you left off (requires a terminal multiplexer like screen or tmux), or run a daemon/server. Here's how to find WSL Linux distros you have running in the background.
The ability to run Linux natively in Windows 10 is provided by the WSL feature. WSL stands for Windows Subsystem for Linux, which initially, was limited to Ubuntu only. Modern versions of WSL allow installing and running multiple Linux distros from Microsoft Store.
After enabling WSL, you can install various Linux versions from the Store. You can use the following links:
Find Running WSL Linux Distros
Starting with Windows 10 build 17046, Windows Subsytem for Linux (WSL) has got support for long-running background tasks, similar to how the Windows subsystem has Services. This is a really impressive change for users of WSL who work with servers like Apache or apps like screen or tmux. Now they can run in the background like regular Linux daemons. This, and a number of others, are reasons to have an active WSL instance in Windows 10.
Even when you issue the
exit command, this doesn't turn off your WSL distro. Starting in Windows 10 build 18836 (Skip Ahead) and build 18342 (Fast Ring) you can quickly find running distros using new features of the OS. Here is how it can be done.
To Find Running WSL Linux Distros in Windows 10,
- Open File Explorer
- Click on the Linux item in the Navigation Pane.
- Click on Distros shortcut in the Linux folder to see all currently running WSL distros.
Alternatively, you can use a console tool, wsl.exe, to see which WSL Linux distros are currently running on your computer.
Find Running WSL Linux Distros with wsl.exe
- Open a new command prompt
- Execute the command
wsl.exe --list --runningto see currently active instances of WSL. Alternatively, you can run the command
wsl.exe -l --running.
- To list all WSL distros, run the command
wsl.exe --list --allor
wsl.exe -l --all.
Articles of interest:
- Terminate Running WSL Linux Distro in Windows 10
- Remove Linux from Navigation Pane in Windows 10
- Export and Import WSL Linux Distro in Windows 10
- Access WSL Linux Files from Windows 10
- Windows 10 Build 18836 Shows WSL/Linux File System in File Explorer
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!