Configuring Sudo on Windows 11: Steps to Manage Command Behavior

Apps & Games / Desktop / Windows / Configuring Sudo on Windows 11: Steps to Manage Command Behavior
18 Jun 2024

In a significant move towards enhancing user control and flexibility, Microsoft has introduced the ability to configure Sudo on Windows 11. This feature, long-awaited by developers and power users, brings a new level of command behavior customization to the Windows ecosystem.

Steps to Configure Sudo on Windows 11

To enable and configure the Sudo command on your Windows 11 system, follow these straightforward steps:

  1. Open Settings.
  2. Click on System.
  3. Navigate to the For developers page on the right side.

Settings navigation

Once there, turn on the Enable sudo toggle switch. This action will activate the Sudo configuration options.

Enable sudo toggle switch

Next, click the sudo setting to reveal the available options. Here, you can select the desired sudo behavior with the "Configure how sudo runs applications" setting:

  • Inline: The command runs in the same window, identical to Linux and macOS.
  • With input disabled: The command runs in a new window but doesn’t accept additional inputs.
  • In a new window: The command triggers a new, elevated window.

Sudo configuration options

This new feature in Windows 11 not only aligns with the command behavior seen in other operating systems like Linux and macOS but also provides users with more control over how commands are executed. Whether you prefer running commands inline, in a new window with input disabled, or in a completely new elevated window, Windows 11's Sudo configuration offers flexibility to suit various workflows and security requirements.

The introduction of Sudo configuration in Windows 11 is a testament to Microsoft's commitment to catering to the needs of developers and advanced users. By providing these customizable command behaviors, Windows 11 continues to evolve as a versatile and powerful operating system.

Update: 18 Jun 2024