• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

ReviewsLion

Reviews of online services and software

  • Hosting
  • WordPress Themes
  • SEO Tools
  • Domains
  • Other Topics
    • WordPress Plugins
    • Server Tools
    • Developer Tools
    • Online Businesses
    • VPN
    • Content Delivery Networks

How to Restart WSL on Windows 11

Windows Subsystem for Linux (WSL) has become an essential tool for developers and system administrators who prefer the power of Linux with the convenience of Windows. However, like any software environment, WSL can occasionally run into issues or just sluggish performance that a quick restart can resolve. If you’re using Windows 11 and wondering how to restart WSL effectively, this guide will walk you through the process step by step.

Table of contents:
  • Why Restart WSL?
  • Method 1: Using PowerShell Commands
  • Method 2: Restart via Services (For Legacy WSL 1)
  • Checking Your WSL Version
  • Optional: Restarting a Specific Distro
  • Bonus: Restart WSL Automatically After System Wake
  • Conclusion

Why Restart WSL?

Restarting WSL is useful for multiple reasons. You might need to:

  • Apply changes to the Linux environment
  • Clear hung processes or frozen services
  • Reset network configurations inside WSL
  • Fix WSL-specific issues without rebooting the entire Windows system

Doing a full system reboot to fix WSL is hardly time-efficient, especially when there are much faster methods available.

Method 1: Using PowerShell Commands

This is the quickest and most straightforward way to restart WSL. Open Windows PowerShell with administrative privileges and run the following command:

wsl --shutdown

This command cleanly stops all running WSL distributions and related processes. After running this, you can simply relaunch your WSL terminal or run any WSL-related command to start it again.

Example:

wsl

This command will start your default WSL distribution again, as if rebooting a machine.

Method 2: Restart via Services (For Legacy WSL 1)

If you are using WSL 1 (or unsure which version you are on), there’s a more manual method via the Windows Services tool. Here’s how:

  1. Press Win + R to open the Run dialog box.
  2. Type services.msc and hit Enter to launch the Services window.
  3. Look for a service named something like LxssManager.
  4. Right-click on it and select Restart.

Note that this only affects WSL 1 environments. WSL 2 uses a lightweight virtual machine, and this method won’t work on that version.

Checking Your WSL Version

If you’re unsure which version of WSL you’re using, open PowerShell and run:

wsl --list --verbose

The output will show all installed distros along with their WSL version. If you’re using WSL 2, stick with the wsl --shutdown method described earlier.

Optional: Restarting a Specific Distro

WSL supports multiple distributions like Ubuntu, Debian, and Kali. You can also restart a specific one. First, shut it down by name:

wsl --terminate Ubuntu

Replace “Ubuntu” with the name of the distribution you’re using. Once terminated, restart it by simply running:

wsl -d Ubuntu

This method is ideal when only one specific distro is misbehaving, saving you from having to shut down all WSL environments.

Bonus: Restart WSL Automatically After System Wake

If your WSL sessions often get affected after your computer wakes up from sleep or hibernation, consider creating a simple script that shuts WSL down and brings it back up. Here’s a basic idea:


wsl --shutdown
timeout /t 2
wsl

You could schedule this to run using Windows Task Scheduler with a trigger set to “On workstation unlock” to automate the process even further.

Conclusion

Restarting WSL on Windows 11 is a straightforward process that can resolve many common issues without requiring a full system reboot. Whether you’re leveraging WSL for web development, scripting, or simply enjoying a Linux workspace, knowing how to manage and reset your environment is a valuable skill. The command-line tools provided by Microsoft make it easy and efficient to regain control whenever WSL starts acting up.

With these methods in your toolkit, you can keep your development environment clean, fast, and responsive—just the way it should be.

Filed Under: Blog

Related Posts:

  • Businessman Wearing Formal Suits Pointing to Holograms of Digital Document Files
    How to turn on files on-demand in Windows 10?

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent posts

What happened to the iPhone Bubble level app?

What languages is ChatGPT available in?

Instagram Engagement Groups Use Teamwork To Help You Succeed

What is the best alternative to Dopebox?

How to Silence Notifications on iPhone

What is the difference between an internet gateway and a virtual private gateway?

SpyDialer Reverse Phone Lookup and Competitors

How do you put multiple pictures in one story on Snapchat?

Top vMix Alternatives In 2025

How to Download & Install Veeam Agent for Windows 11 or 10

Footer

WebFactory’s WordPress Plugins

  • UnderConstructionPage
  • WP Reset
  • Google Maps Widget
  • Minimal Coming Soon & Maintenance Mode
  • WP 301 Redirects
  • WP Sticky

Articles you will like

  • 5,000+ Sites that Accept Guest Posts
  • WordPress Maintenance Services Roundup & Comparison
  • What Are the Best Selling WordPress Themes 2019?
  • The Ultimate Guide to WordPress Maintenance for Beginners
  • Ultimate Guide to Creating Redirects in WordPress

Join us

  • Facebook
  • Privacy Policy
  • Contact Us

Affiliate Disclosure: This page may have affiliate links. When you click the link and buy the product or service, I’ll receive a commission.

Copyright © 2025 · Reviewslion

  • Facebook
Like every other site, this one uses cookies too. Read the fine print to learn more. By continuing to browse, you agree to our use of cookies.X