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:
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!