Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to quickly shut down on Windows 10

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article focuses on "how to close quickly on Windows 10". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to quickly shut down on Windows 10.

Although Windows Subsystem for Linux (WSL) is a convenient way to run Linux distributions with windows10, lightweight virtual machines will continue to run in the background, and even if you exit the command shell, system resources will be wasted.

If you want to stop the Linux distribution immediately after using it (Ubuntu, Kali, Debian, etc.), or need to restart it, you can use the wsl command to manually close one or all of the distributions.

How to terminate the Linux distribution on WSL 2

To terminate the Linux distribution on Windows Subsystem for Linux, use the following:

1. Search for the Command prompt in the taskbar search bar, right-click the top result, and then select the run as administrator option.

two。 Type the following command to view all running WSL distributions, and then press Enter:

Wsl-list-verbose

3. Enter the following command to close the Linux distribution, and then press Enter:

Wsl-t DISTRO-NAME

In the command, be sure to replace DISTRO-NAME with the name of the distribution you want to close, for example, wsl-t Ubuntu-20.04.

4. (optional) confirm that the release is no longer running by typing the following command, and then press Enter:

Wsl-list-verbose

After completing these steps, the distribution running on the Windows subsystem of Linux 2 will shut down normally.

2. How to terminate all Linux distributions on WSL 2

To close all WSL distributions running on Windows 10, use the following:

1. Search for the Command prompt in the taskbar search bar, right-click the top result, and then select the run as administrator option.

two。 Type the following command to view all running WSL distributions, and then press Enter:

Wsl-list-verbose

3. Enter the following command to close the Linux distribution, and then press Enter:

Wsl-shutdown

4. (optional) confirm that the release is no longer running by typing the following command, and then press Enter:

Wsl-list-verbose

After completing these steps, all WSL distributions will be terminated immediately.

If you need to restart the Linux distribution, simply open it again from the start menu or using the wsl-- distribution DISTRO-NAME command at a command prompt. Remember to replace DISTRO-NAME with the actual name of the distribution.

At this point, I believe you have a deeper understanding of "how to quickly shut down on Windows 10". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report