Home  >  Article  >  Computer Tutorials  >  Interface preview: Microsoft Windows 11 will natively support sudo commands

Interface preview: Microsoft Windows 11 will natively support sudo commands

WBOY
WBOYforward
2024-02-19 11:24:03652browse

界面前瞻:微软 Windows 11 将原生支持 sudo 命令

According to news, Microsoft has begun inviting some members of the Windows Insider project to test the native sudo command in the latest Windows Server preview version. This feature is expected to be integrated into Windows 11 systems in the future.

The function of the sudo command is to allow ordinary users to execute some commands as a super user. In short, it gives non-root users the ability to execute commands that only root users have permission to execute.

Existing Windows users can also use the Sudo command-line utility, but you need to install Scoop or use it through Windows Subsystem for Linux (WSL).

According to the screenshots of the exposed Windows Server preview version, users can open the Settings application and enable the "Enable sudo" option in the system's developer options.

The Sudo command requires developer mode to be enabled, but it does not currently take effect in the leaked preview version.

As you can see in the screenshot above, the sudo interface has 3 options:

  • Open in new window: This probably means that when you run a command using sudo, it opens in a separate new window (perhaps a terminal window) and executes the command in that window.
  • Disable input: It is unclear the effect of this option. Judging from the name, it may represent a security feature that temporarily disables keyboard or mouse input when running a Sudo command to prevent unauthorized operations during execution.
  • Inline: This may allow Sudo commands to be executed in the current window or related context without opening a new window, which may be helpful for quick tasks or when working in an integrated development environment (IDE).

The Sudo setting also warns that running commands may put your device and personal data at security risk and may cause harm to your device.

After enabling this feature and turning on developer mode, you can access Sudo commands on Windows using Command Prompt, PowerShell, or any terminal interface.

The above is the detailed content of Interface preview: Microsoft Windows 11 will natively support sudo commands. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:mryunwei.com. If there is any infringement, please contact admin@php.cn delete