Windows 11 Gets Linux’s Sudo Command

What to know

  • Windows 11 will soon allow developers to use Linux-based Sudo commands.
  • Sudo commands allow users to run program elevated programs directly from unelevated consoles. 
  • Currently, Sudo can be enabled on Windows 11 Canary build 26052. It will be rolled out to stable builds gradually over the course of the year.

Windows 11 will soon allow developers the ability to run elevated programs directly from unelevated consoles using in-built sudo commands. Here’s what the latest developments have to offer to developers on Windows.

Related: Here Are the Two Ways to Enable Sudo in Windows 11 (Using Settings or CMD)

Windows gets in-built Sudo command

Sudo, or “superuser do” is a privilege afforded to Linux and other Unix-based systems to run programs in an elevated environment without having to open first open elevated consoles first. 

Furthermore, developers will be able to configure how sudo runs application in three ways –

  • In a new window
  • With input disabled
  • Inline

The latter is the closest to the Linux sudo. 

Although Microsoft has announced the feature’s availability on Windows, currently, the ability to use sudo commands is available only on Canary version 26052. Users with stable Windows 11 builds will have to wait a while before the feature is rolled out to them later in the year. Refer to our guide on how to enable Sudo in Windows 11.

Microsoft had earlier added brought the full Linux kernel to Windows, giving users the ability to test scripts directly within a Linux environment. With the addition of Sudo, developers will be able to run elevated commands without having to open new elevated consoles first. On top of that, Microsoft has also announced that it’s working on open-sourcing Sudo for Windows on GitHub. More details are soon to follow. So be sure to keep your eyes peeled for more updates. 

Leave a Reply

Your email address will not be published. Required fields are marked *