If you created a Windows Subsystem for Linux environment from PowerShell and later wondered how to get back into it, you are not alone. WSL can feel slightly different from a normal application because a Linux distribution is not always reopened from the same place where it was created. The good news is that once a WSL distribution exists, Windows remembers it, and you can reopen it from PowerShell, Windows Terminal, the Start menu, File Explorer, or even a desktop shortcut.
TLDR: To reopen a previously created WSL instance, open PowerShell and run wsl or wsl -d DistroName. Use wsl -l -v to see the exact names of your installed distributions. If you imported a custom distro, it may not appear like a normal app, but it is still available through the wsl command. For regular use, Windows Terminal profiles and shortcuts make reopening WSL much easier.
Understanding What “Reopen WSL” Really Means
When people say they “created WSL in PowerShell,” they may mean one of several things. They might have installed Ubuntu using wsl --install, imported a custom Linux root filesystem with wsl --import, or enabled WSL features and then launched a distribution for the first time. In all cases, WSL works as a lightweight Linux environment managed by Windows, not as a traditional virtual machine that you open from a separate hypervisor window.
That means reopening WSL is usually as simple as launching the distribution again. You do not need to reinstall it, recreate it, or repeat the original command unless something was removed. Your Linux files, packages, users, and shell configuration should still be there.
Step 1: Open PowerShell
The most direct way to reopen WSL is through PowerShell, especially if that is where you originally created it. You can use either Windows PowerShell or PowerShell 7. For most basic WSL commands, both work the same way.
- Press Windows on your keyboard.
- Type PowerShell.
- Open Windows PowerShell or PowerShell.
- At the prompt, type
wsland press Enter.
wsl
If you have only one WSL distribution installed, this command usually opens it immediately. You should see a Linux prompt, often ending with a dollar sign such as $. That means you are now inside your Linux environment.
Step 2: List Your Installed WSL Distributions
If typing wsl does not open the distribution you expected, you may have more than one installed. To see all registered WSL distributions, run:
wsl -l -v
This command lists your distributions, their current state, and which WSL version they use. The output may look similar to this:
NAME STATE VERSION
* Ubuntu Stopped 2
Debian Running 2
MyCustomLinux Stopped 2
The asterisk marks the default distribution. When you run wsl without extra options, Windows opens that default distro. If your previously created WSL environment is listed under a different name, you can launch it directly.
Step 3: Reopen a Specific Distribution
To open a particular WSL distribution, use the -d option followed by its name:
wsl -d Ubuntu
For a custom imported distribution, the command might look like this:
wsl -d MyCustomLinux
Names are important. Use the exact name shown by wsl -l -v. If the name contains spaces, wrap it in quotation marks:
wsl -d "Ubuntu 22.04"
This is one of the most useful commands to remember because it works even if the distribution does not have a Start menu icon or Windows Terminal profile.
What If the Distribution Says “Stopped”?
Seeing Stopped in the distribution list is normal. It does not mean the Linux system is broken. WSL distributions automatically stop when they are not being used, which helps save memory and CPU resources. When you run wsl -d DistroName, Windows starts the distribution again and opens a shell.
Think of it like waking a laptop from sleep rather than reinstalling an operating system. Your files, installed tools, shell history, and configuration are still available.
Setting the Right Default Distribution
If you want a specific WSL distribution to open every time you type wsl, set it as the default:
wsl --set-default Ubuntu
After that, simply running:
wsl
will open Ubuntu. This is especially handy if you created multiple distributions for testing, development, or experimentation but mainly use one of them day to day.
Opening WSL from Windows Terminal
PowerShell is reliable, but Windows Terminal is often more comfortable for daily WSL use. It supports tabs, profiles, themes, split panes, and better font rendering. If your WSL distribution was installed normally from the Microsoft Store or with wsl --install, Windows Terminal may automatically create a profile for it.
To open WSL from Windows Terminal:
- Open Windows Terminal.
- Click the small dropdown arrow next to the tab button.
- Select your Linux distribution, such as Ubuntu or Debian.
If your distribution does not appear, you can still open a PowerShell tab and run wsl -d DistroName. For imported distros, Windows Terminal does not always create a profile automatically, but you can add one manually in the Terminal settings.
Opening WSL from the Start Menu
Many standard WSL distributions appear in the Windows Start menu as regular apps. For example, if you installed Ubuntu, you may be able to press Windows, type Ubuntu, and launch it directly.
This method is convenient, but it is not universal. A distribution imported using wsl --import may not create a Start menu entry. That does not mean it is missing. It simply means Windows registered it as a WSL distribution without adding an app shortcut. In that case, PowerShell remains the most dependable way to reopen it.
Opening WSL in a Specific Windows Folder
Sometimes you do not just want to reopen WSL; you want it to start in a particular project directory. WSL can open from the current Windows path when you run it from PowerShell.
For example:
cd C:\Users\YourName\Projects\myapp
wsl
Inside WSL, that Windows folder appears under /mnt/c. You can also run a specific command when launching WSL:
wsl -d Ubuntu -- pwd
Or start in a Linux home directory:
wsl -d Ubuntu --cd ~
This is useful for developers who move between Windows tools and Linux command line workflows. You can edit code in Windows, run scripts in Linux, and keep both environments connected.
Reopening an Imported WSL Distribution
Imported distributions deserve special attention because they are often created entirely from PowerShell. A typical import command looks like this:
wsl --import MyCustomLinux C:\WSL\MyCustomLinux C:\Images\rootfs.tar --version 2
After importing, you reopen it with:
wsl -d MyCustomLinux
The folder used during import, such as C:\WSL\MyCustomLinux, stores the virtual disk and supporting files. You normally should not manually edit those files from Windows while WSL is running. Instead, access your Linux filesystem from inside WSL or through the special Windows path:
\\wsl$\MyCustomLinux
You can paste that path into File Explorer to browse the Linux files safely.
Creating a Shortcut to Reopen WSL Quickly
If you reopen the same distribution often, create a shortcut. On your desktop, right-click and choose New > Shortcut. For the location, enter something like:
wsl.exe -d Ubuntu
Give it a name such as Ubuntu WSL. Double-clicking the shortcut will open the distribution. For a custom distribution, replace Ubuntu with the exact distro name:
wsl.exe -d MyCustomLinux
You can also pin Windows Terminal to the taskbar and configure its default profile to your preferred WSL distribution for an even smoother setup.
Checking Whether WSL Is Still Installed
If wsl is not recognized, WSL may not be installed or enabled correctly. First, check the command:
wsl --status
If Windows reports that the command does not exist, you may need to install or enable WSL again. On modern Windows 10 and Windows 11 systems, this command usually installs WSL and the default Linux distribution:
wsl --install
However, be careful: reinstalling WSL is different from reopening an existing distribution. Before making changes, run wsl -l -v if possible to verify whether your distributions are still registered.
Troubleshooting Common Reopening Problems
Here are some common issues and practical fixes:
- “There are no installed distributions.” This means Windows does not currently see any registered WSL distros. If you previously exported one, you may need to import it again.
- The wrong distro opens. Use
wsl -l -vto check names, then runwsl --set-default DistroName. - The distro opens as root. Some imported distros default to the root user. You can specify a user with
wsl -d DistroName -u username, or configure the default user inside the distribution. - Windows Terminal does not show the distro. Launch it manually with
wsl -d DistroNameor create a custom Terminal profile. - The distro seems frozen. Shut it down with
wsl --terminate DistroName, then reopen it.
Stopping and Reopening Cleanly
Sometimes you may want to restart a WSL distribution intentionally. To stop one distro, run:
wsl --terminate Ubuntu
To stop all running WSL distributions:
wsl --shutdown
Then reopen the one you want:
wsl -d Ubuntu
This can solve temporary networking, service, or filesystem issues. It is similar to rebooting a small Linux machine, but much faster.
Final Thoughts
Reopening a WSL environment previously created in PowerShell is mostly about knowing its registered name. Once you can list your distributions with wsl -l -v, you can launch any of them using wsl -d DistroName. Whether you prefer PowerShell, Windows Terminal, the Start menu, or a custom shortcut, WSL is designed to be reopened without repeating the original setup process.
The most important thing to remember is that a stopped WSL distribution is not gone. It is simply waiting. With a single command, your Linux environment can be back on screen, ready for package updates, shell scripts, development servers, automation tasks, or whatever project you left unfinished.