on
OS
- Get link
- X
- Other Apps
This move is part of Microsoft's ongoing efforts to bridge the gap between Windows and Linux, making it easier for developers and power users to work seamlessly across both platforms. With the addition of the "sudo" command, Windows 11 users will now be able to execute commands that require elevated privileges directly from the command line, streamlining the workflow for many users.
At the moment, sudo is only available to Windows users running an Insider Preview of Windows 11. If you want to use sudo today, you'll need to enroll in the Windows Insider Program, otherwise you'll need to wait until the feature trickles out in an update.
To enable sudo in Windows 11, just open the Settings app, navigate to the For Developers page, and toggle "Enable sudo" to the on position.
You can configure the function of the sudo command on the For Developers Settings page above. You can force commands executed using sudo to run in a new window, Set input from the window sudo was launched from, or set sudo to some functions as it does in other operating systems by default.
To use the sudo command to run a command as an administrator, Next type sudo before the command. That's it.
C:\>sudo netstat -ab
Running the above netstat command with the "sudo", it's only available to users in an escalated administrative session.
This move is being welcomed by developers and system administrators who often work across multiple platforms and rely on the flexibility of the "sudo" command. With Windows 11 embracing this powerful feature, users can expect a more seamless and convenient experience when managing administrative tasks on their systems.
Overall, Microsoft's decision to bring Linux's "sudo" command to Windows 11 is a clear indication of the company's commitment to providing a more open and interoperable operating system. By incorporating features that have long been favored by the Linux community, Microsoft is not only improving the user experience but also fostering greater collaboration and integration between different computing environments.
Comments
Post a Comment