You can port the Linux sudo command to older versions of Windows 11 and 10 using gsudo, like this.
Channel | Publish Date | Thumbnail & View Count | Actions |
---|---|---|---|
Akamai Developer | 2022-05-25 19:00:18 | 40,301 Views |
Everything you need to know about sudo | Linux Essentials Tutorial
Gsudo is a better alternative that brings the Linux “sudo” command experience to Windows 11, 10 and older versions, and in this guide I’ll show you how to get started.
Starting with version 24H2, Windows 11 integrates the sudo command natively. However, unlike the version available on Linux, the version for Windows is very limited in terms of the options that can be used. If you want a more similar experience to the version on Linux, you will need to use the gsudo tool.
Additionally, Windows 10 does not have native support for sudo, but the gsudo tool provides the ability to elevate commands for older versions of the operating system, including Windows 8.1 and 7 SP1.