Home > System Tutorial > Windows Series > Microsoft confirms that Win11 Build 26052 preview version natively supports Sudo commands

Microsoft confirms that Win11 Build 26052 preview version natively supports Sudo commands

WBOY
Release: 2024-02-29 16:25:49
forward
499 people have browsed it

php editor Zimo reported: Microsoft confirmed that the preview version of Win11 Build 26052 natively supports the Sudo command. This news makes Win11 users very happy, because the support of Sudo command will bring users a more convenient system management and operation experience. The release of Win11 Build 26052 preview version will bring more practical functions and improvements to users, making the operating system more intelligent and efficient. Win11 users can experience native support for this important feature by updating the system version.

微软确认Win11 Build 26052 预览版原生支持 Sudo 命令

Microsoft describes Sudo for Windows as “an ergonomic and familiar solution that allows users to update the system without opening a new privilege-elevated console.” Run certain commands with high privileges".

Sudo for Windows is in the early stages of development and, as we previously reported , has appeared in Windows Server 2025 previews.

Microsoft noted in a since-deleted blog post that Sudo can be enabled from the Settings > For Developers page and toggled on the "Enable Sudo" option.

微软确认Win11 Build 26052 预览版原生支持 Sudo 命令

Users can also run certain commands with elevated privileges through the command line:

sudo config --enable <configuration_option>

As we reported previously, Sudo for Windows currently supports three different configuration options:

Open in a new window (newWindow):

  • here configuration, Sudo for Windows will open a new advanced console window and run commands in that window. This is the default configuration option when sudo is enabled.

For example, a user running sudo netstat -ab will open a new window in which the command will be run.

Input off (disableInput)

  • In this configuration, Sudo for Windows will run the elevated process in the current window, but the new process will have its stdinput turned off when spawned. This means that the new process will not accept any user input, so this configuration is not suitable for processes that require further input from the user after promotion.

Inline (normal)

  • This configuration is most similar to sudo behavior on other operating systems. In this configuration, Sudo for Windows will run an elevated process with stdinput, stdoutput, and stderror connected to the current window. This means that the new elevated process can receive input and send output to the current window.

Microsoft says that when running a process from the command line using sudo, a UAC dialog box appears asking the user to confirm the upgrade. You can also use sudo in the terminal, just like on Linux or macOS.

The above is the detailed content of Microsoft confirms that Win11 Build 26052 preview version natively supports Sudo commands. For more information, please follow other related articles on the PHP Chinese website!

source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template