Windows 11 looks to be getting a key Linux tool added in the future

Fedora Remix for WSL on Windows 11
(Image credit: Windows Central)

What you need to know

  • Users of Linux and macOS may well be familiar with the sudo command, used regularly in the terminal, and it looks like Windows may finally be getting its own version. 
  • Spotted in a preview build of Windows Server, a new option to enable sudo with three configurable options is present in the developer settings. 
  • The average user will likely never touch this, but it would set Windows more in line with other platforms for system admins and developers who spend their time in the terminal. 
  • Presumably it could also reduce the need to launch a terminal specifically with administrator privileges. 

For those who work across Windows 11 as well as Linux (or macOS), there are different ways of doing things. For the latter two, there are many similarities, but Windows has always been a little different. Now, though, it looks like one key tool used elsewhere may be coming to Windows. 

Spotted in a leaked Windows Server preview build by Windows Latest, a new option to enable sudo looks like it's being added. This would bring some operations from within the terminal on Windows in line with Linux and macOS. 

What is sudo? 

(Image credit: Windows Latest)

Sudo simply means "superuser do" and is used when requiring elevated privileges on a user account while executing commands. For example, on Debian-based Linux distros, you would enter sudo apt update to update your system packages. Not everything requires elevated privileges, but the command applies them as and when necessary. 

It's similar to requiring administrator rights on Windows, where currently you would choose specifically to run your terminal as administrator. 

As per the report from Windows Latest, this new feature would appear to have three configurable options for sudo behavior. This includes opening in a new window, opening with input disabled, or inline, which you would imagine means keeping everything in the same session as it would on Linux. 

It could seem like a small change, but it's actually far from it. Not only would it bring Windows into line with other platforms developers and system admins use regularly with a standard command, it could also make executing with admin rights far simpler. As a regular Linux/WSL user myself, sudo is already engrained into my brain, but whenever I switch over to PowerShell, I just find myself getting frustrated because it's different. I, for one, welcome the arrival of our new sudo overlord. 

TOPICS
Richard Devine
Managing Editor - Tech, Reviews

Richard Devine is a Managing Editor at Windows Central with over a decade of experience. A former Project Manager and long-term tech addict, he joined Mobile Nations in 2011 and has been found on Android Central and iMore as well as Windows Central. Currently, you'll find him steering the site's coverage of all manner of PC hardware and reviews. Find him on Mastodon at mstdn.social/@richdevine

  • GraniteStateColin
    I would love to be able to run admin-only commands from an existing open Windows terminal session. The way I'd like it to work would be to convert the existing non-admin session into an admin session. I want to be able to preserve the command history so the up arrow still works to redo prior executed commands, just as an administrator. Adding a prefix or opening a new window wouldn't solve that problem for me.

    I do prefer PowerShell to the Linux equivalents, so I'm less concerned about making it work just like Linux and carrying over those limitations. But if they are implementing it with options, then they can ensure it works for both Linux admins doing a little bit in Windows and also for MS admins who are currently simply frustrated with needing to open a separate admin window when a particular PowerShell command is not possible to run in the existing window.
    Reply