Microsoft tries support for native sudo commands for Windows 11. Support for the native “sudo” command was spotted in a leaked Windows Server preview build that was accidentally posted to the Windows Update servers over the weekend.
You will already know the “sudo” command if you have used any Linux distribution or have macOS. The sudo command on Linux or macOS allows modifying system files, changing system settings, system-wide updates, and more. The same command is now coming to Windows 11.
The order sudo from "Superuser do” is coming to Windows 11 as part of the developer settings. It may allow you to manage settings that require administrator rights, such as uninstalling apps, changing system settings, or other developer-related settings. You'll find the Sudo toggle in Windows 11's developer settings.
The sudo command requires you to enable developer mode, but it currently doesn't work in the leaked builds.
As you can see in the images above, you will be able to configure the behavior of sudo commands by setting preferences for how the commands are executed.
The sudo settings also warn that running a command could expose your device and personal data to security risks and potentially damage your device without explaining why.
You will be able to access the sudo command using the Command Prompt, PowerShell, or any terminal interface in Windows as long as the feature is enabled.
We currently do not know when the sudo command will be released in production (stable builds).