Microsoft Introduces Sudo for Windows
How do I run the sudo command in Windows 11?
The sudo command offers three configuration modes:
Opening in a new window: This mode launches a new window where the elevated command executes.
Input disabled: In this mode, the elevated command runs within the same window as the trigger, but without access to standard input.
Inline (normal) mode: Command runs in current window, allowing admin-level interaction with console. Beware of security risks.
What is the sudo equivalent for Windows 11?
gsudo is like sudo for Windows, working much like it does in Unix/Linux. It lets you run commands with higher permissions or elevate the current shell, whether in the current console window or a new one. Just start your command with gsudo (or the sudo alias) and it will run with elevated privileges.
Microsoft is bringing Linux’s Sudo command to Windows 11
Microsoft persists in its embrace of Linux, solidifying Windows as a welcoming environment for developers.
Microsoft continues to succeed with Linux by bringing the popular ‘sudo’ command to Windows 11. The introduction of ‘Sudo for Windows’ is specifically for developers, giving a solution for running elevated tools directly from an unelevated console session. This move follows Microsoft’s previous actions, including shipping a full Linux kernel in Windows 10 and incorporating Linux features.