{"id":170549,"date":"2024-07-18T11:12:16","date_gmt":"2024-07-18T15:12:16","guid":{"rendered":"https:\/\/pureinfotech.com\/?p=170549"},"modified":"2024-07-18T11:12:16","modified_gmt":"2024-07-18T15:12:16","slug":"gsudo-install-use-linux-sudo-windows","status":"publish","type":"post","link":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/","title":{"rendered":"What is gsudo, and how to get started? The better Linux Sudo for Windows 11 and 10 explained."},"content":{"rendered":"<ul class=\"sum\">\n<li>To install gsudo on Windows 11 or 10, open <strong>Command Prompt (admin)<\/strong>\u00a0and run the <code>winget install --id gerardog.gsudo<\/code> command.<\/li>\n<li>You can now run elevated commands using the <code>gsudo YOUR-COMMAND<\/code>, or you can use the sudo alias, for instance, <code>sudo YOUR-COMMAND<\/code>.<\/li>\n<\/ul>\n<p>Gsudo is a better alternative that brings the Linux sudo command experience to <a href=\"https:\/\/pureinfotech.com\/tag\/windows-11\">Windows 11<\/a>, 10, and older versions, and in this guide, I will show you how to get started.<\/p>\n<p>Starting on <a href=\"https:\/\/pureinfotech.com\/windows-11-24h2-new-features\">version 24H2<\/a>, Windows 11 incorporates the <a href=\"https:\/\/pureinfotech.com\/enable-sudo-windows-11\/\">sudo command natively<\/a>. However, unlike the version available on Linux, the one for Windows is very limited in terms of the options you can use. If you want a more similar experience to the version on Linux, you have to use the gsudo tool.<\/p>\n<p>Also, Windows 10 doesn&#8217;t include native support for sudo, but gsudo tool brings the ability to elevate commands for older versions of the operating system, including Windows 8.1 and 7 SP1.<\/p>\n<h4>What&#8217;s gsudo?<\/h4>\n<p>Gsudo is basically the sudo command for Linux but for Windows users since it offers virtually the same experience to run commands elevated with administrator permissions without having to reopen the Command Prompt, PowerShell, WSL console, and many others.<\/p>\n<p>The gsudo is a third-party portable tool created by <a href=\"https:\/\/github.com\/gerardog\/gsudo\" target=\"_blank\" rel=\"noopener\">Gerardo Grignoli available through the GitHub platform<\/a>, and anyone can install it on Windows 11 as well as on <a href=\"https:\/\/pureinfotech.com\/tag\/windows-10\">Windows 10<\/a> through the various package managers, including the <a href=\"https:\/\/pureinfotech.com\/install-winget-windows-11\/\">Windows Package Manager (winget)<\/a>.<\/p>\n<p>The tool uses &#8220;gsudo&#8221; to run elevated commands, but the &#8220;sudo&#8221; alias is also supported. However, since Windows 11 24H2 already integrates &#8220;sudo,&#8221; it&#8217;s best to use the &#8220;gsudo&#8221; command. On Windows 10 22H2, the &#8220;sudo&#8221; alias works flawlessly.<\/p>\n<p>In this <a href=\"https:\/\/pureinfotech.com\/tag\/how-to\">guide<\/a>, I will explain the easy steps to install and run your first command with gsudo on Windows 11 and 10.<\/p>\n<h2>Install and run sudo commands with gsudo on Windows<\/h2>\n<p>To install gsudo to run sudo commands on Windows 11 or 10, use these steps:<\/p>\n<ol>\n<li>\n<p>Open <strong>Start <\/strong>on Windows.<\/p>\n<\/li>\n<li>\n<p>Search for <strong>Command Prompt<\/strong>, right-click the top result, and select the <strong>Run as administrator<\/strong> option.<\/p>\n<\/li>\n<li>\n<p>Type the following command to install gsudo and press <strong>Enter<\/strong>:<\/p>\n<pre>winget install --id gerardog.gsudo<\/pre>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-170553\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/winget-install-gsudo-windows.webp?resize=827%2C343&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"winget install gsudo\" width=\"827\" height=\"343\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/winget-install-gsudo-windows.webp?w=974&amp;quality=78&amp;strip=all&amp;ssl=1 974w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/winget-install-gsudo-windows.webp?resize=300%2C124&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/winget-install-gsudo-windows.webp?resize=150%2C62&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/li>\n<li>\n<p>Restart the command shell as a standard user.<\/p>\n<\/li>\n<li>\n<p>(Option 1) Type the following command to run a command elevated and press <strong>Enter<\/strong>:<\/p>\n<pre>gsudo YOUR-COMMAND<\/pre>\n<p>For example, this command deletes a text file for the root of the &#8220;C&#8221; drive: <code>gsudo del mytext.txt<\/code><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-170554\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-11-10-sudo-command.webp?resize=827%2C289&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"Run sudo command with gsudo\" width=\"827\" height=\"289\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-11-10-sudo-command.webp?w=884&amp;quality=78&amp;strip=all&amp;ssl=1 884w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-11-10-sudo-command.webp?resize=300%2C105&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-11-10-sudo-command.webp?resize=150%2C52&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/li>\n<li>\n<p>(Option 2) Type the following command to run the gsudo command as sudo and press <strong>Enter<\/strong>:<\/p>\n<pre>sudo YOUR-CAMMAND<\/pre>\n<\/li>\n<li>\n<p>Type the following command to run the last command again and press <strong>Enter<\/strong>:<\/p>\n<pre>gsudo !!<\/pre>\n<\/li>\n<li>\n<p>(Optional) Open <strong>Start<\/strong>.<\/p>\n<\/li>\n<li>\n<p>Search for <strong>PowerShell<\/strong> and click the top result to open the shell.<\/p>\n<\/li>\n<li>\n<p>Type the following command to run gsudo on PowerShell and press <strong>Enter<\/strong>:<\/p>\n<pre>gsudo { YOUR-COMMAND }<\/pre>\n<p>For example, this command prints the &#8220;Hello World&#8221; messages in PowerShell: <code>gsudo { Write-Output \"Hello World\" }<\/code>.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-170555\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/gsudo-sudo-powershell.webp?resize=827%2C289&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"PowerShell gsudo run sudo command\" width=\"827\" height=\"289\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/gsudo-sudo-powershell.webp?w=884&amp;quality=78&amp;strip=all&amp;ssl=1 884w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/gsudo-sudo-powershell.webp?resize=300%2C105&amp;quality=78&amp;strip=all&amp;ssl=1 300w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/gsudo-sudo-powershell.webp?resize=150%2C52&amp;quality=78&amp;strip=all&amp;ssl=1 150w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/p>\n<div id=\"tip-box\"><span><strong>Quick note:<\/strong> When using <strong>gsudo<\/strong> with PowerShell, you have to make sure to wrap the command with curly braces <code>{}<\/code>. If you&#8217;re specifying a variable <code>$<\/code>, create the variable as you would normally do, and then call the variable in the command with <strong>gsudo<\/strong>. For example, in the first line, use the <code>$MyString = \"Hello World\"<\/code> command, press <strong>&#8220;Enter,&#8221;<\/strong> and then run the <code>gsudo { Write-Output $args[0] } -args $MyString<\/code> command.<\/span><\/div>\n<\/li>\n<li>\n<p>(Optional) Type the following command to confirm the version of the tool and press <strong>Enter<\/strong>:<\/p>\n<pre>gsudo -v<\/pre>\n<\/li>\n<li>\n<p>(Optional) Type the following command to view the available options and press <strong>Enter<\/strong>:<\/p>\n<pre>gsudo \/?<\/pre>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-170556\" src=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/gsudo-options-windows-11-10.webp?resize=827%2C1139&#038;quality=78&#038;strip=all&#038;ssl=1\" alt=\"gsudo options for Windows\" width=\"827\" height=\"1139\" srcset=\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/gsudo-options-windows-11-10.webp?w=884&amp;quality=78&amp;strip=all&amp;ssl=1 884w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/gsudo-options-windows-11-10.webp?resize=218%2C300&amp;quality=78&amp;strip=all&amp;ssl=1 218w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/gsudo-options-windows-11-10.webp?resize=417%2C574&amp;quality=78&amp;strip=all&amp;ssl=1 417w, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/gsudo-options-windows-11-10.webp?resize=109%2C150&amp;quality=78&amp;strip=all&amp;ssl=1 109w\" sizes=\"auto, (max-width: 827px) 100vw, 827px\" \/><\/li>\n<\/ol>\n<p>Once you complete the steps, the command will run elevated from a standard command shell without the need to relaunch the console.<\/p>\n<p>If you look at the &#8220;sudo&#8221; and &#8220;gsudo,&#8221; the biggest differences are that one is the native integration, and the other is a third-party application. However, while the &#8220;sudo&#8221; command can delete protected files, elevate commands, and open new elevated shell sessions, the &#8220;gsudo&#8221; can perform these tasks in addition to many other actions.<\/p>\n<p>For example, you can cache a session to reduce the number of admin prompts. It&#8217;s possible to create a new window with different options. You&#8217;ll find more security settings and many other options.<\/p>\n<p>It&#8217;s important to note that if you only need the basic functionalities, the native &#8220;sudo&#8221; support is perhaps all you need. Also, if you install this third-party tool on a device running version 24H2, it&#8217;s best to use the &#8220;gsudo&#8221; command rather than &#8220;sudo&#8221; since there could be conflicts.<\/p>\n<p>The gsudo command is best supported for computers running Windows 11 23H2 and older releases and for bringing the &#8220;sudo&#8221; command to Windows 10.<\/p>\n<p><strong>What are your thoughts about this third-party tool?<\/strong> Let me know in the comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can bring the Linux Sudo command to older version of Windows 11 and 10 with gsudo, and here&#8217;s how.<\/p>\n","protected":false},"author":2,"featured_media":170559,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[2426,23],"tags":[97,19,2540,2715,2576],"class_list":["post-170549","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-features","category-windows","tag-difficulty-level-advanced","tag-how-to","tag-windows-10","tag-windows-11","tag-windows-help"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>What is gsudo, and how to get started? The better Linux Sudo for Windows 11 and 10 explained. - Pureinfotech<\/title>\n<meta name=\"description\" content=\"To install gsudo on Windows 11 or 10, open CMD (admin)\u00a0and run &quot;winget install --id gerardog.gsudo&quot;. Usage gsudo or sudo plus your command.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"What is gsudo, and how to get started? The better Linux Sudo for Windows 11 and 10 explained. - Pureinfotech\" \/>\n<meta property=\"og:description\" content=\"To install gsudo on Windows 11 or 10, open CMD (admin)\u00a0and run &quot;winget install --id gerardog.gsudo&quot;. Usage gsudo or sudo plus your command.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/pureinfotech\" \/>\n<meta property=\"article:published_time\" content=\"2024-07-18T15:12:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-gsudo-sudo-tool-hero-mauro-huculak.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1647\" \/>\n\t<meta property=\"og:image:height\" content=\"1102\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Mauro Huculak\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Pureinfotech\" \/>\n<meta name=\"twitter:site\" content=\"@Pureinfotech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mauro Huculak\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/\"},\"author\":{\"name\":\"Mauro Huculak\",\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43\"},\"headline\":\"What is gsudo, and how to get started? The better Linux Sudo for Windows 11 and 10 explained.\",\"datePublished\":\"2024-07-18T15:12:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/\"},\"wordCount\":736,\"publisher\":{\"@id\":\"https:\/\/pureinfotech.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-gsudo-sudo-tool-hero-mauro-huculak.webp?fit=1647%2C1102&quality=78&strip=all&ssl=1\",\"keywords\":[\"Difficulty level: Advanced\",\"How-To\",\"Windows 10\",\"Windows 11\",\"Windows Help\"],\"articleSection\":[\"Features\",\"Windows\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/\",\"url\":\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/\",\"name\":\"What is gsudo, and how to get started? The better Linux Sudo for Windows 11 and 10 explained. - Pureinfotech\",\"isPartOf\":{\"@id\":\"https:\/\/pureinfotech.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-gsudo-sudo-tool-hero-mauro-huculak.webp?fit=1647%2C1102&quality=78&strip=all&ssl=1\",\"datePublished\":\"2024-07-18T15:12:16+00:00\",\"description\":\"To install gsudo on Windows 11 or 10, open CMD (admin)\u00a0and run \\\"winget install --id gerardog.gsudo\\\". Usage gsudo or sudo plus your command.\",\"breadcrumb\":{\"@id\":\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-gsudo-sudo-tool-hero-mauro-huculak.webp?fit=1647%2C1102&quality=78&strip=all&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-gsudo-sudo-tool-hero-mauro-huculak.webp?fit=1647%2C1102&quality=78&strip=all&ssl=1\",\"width\":1647,\"height\":1102,\"caption\":\"Gsudo for Windows \/ Image: Mauro Huculak\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/pureinfotech.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"What is gsudo, and how to get started? The better Linux Sudo for Windows 11 and 10 explained.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/pureinfotech.com\/#website\",\"url\":\"https:\/\/pureinfotech.com\/\",\"name\":\"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans\",\"description\":\"Pureinfotech is the best site to get Windows help \u2013 featuring friendly how-to guides on Windows 10, Windows 11, Xbox, and other things tech, news, deals, reviews, and more.\",\"publisher\":{\"@id\":\"https:\/\/pureinfotech.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/pureinfotech.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/pureinfotech.com\/#organization\",\"name\":\"Pureinfotech\",\"url\":\"https:\/\/pureinfotech.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1\",\"width\":192,\"height\":192,\"caption\":\"Pureinfotech\"},\"image\":{\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/facebook.com\/pureinfotech\",\"https:\/\/x.com\/Pureinfotech\",\"https:\/\/www.youtube.com\/user\/Pureinfotech\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43\",\"name\":\"Mauro Huculak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g\",\"caption\":\"Mauro Huculak\"},\"description\":\"Mauro Huculak is a Windows How-To Expert and founder of Pureinfotech (est. 2010). With over 21 years as a technology writer and IT Specialist, Mauro specializes in Windows, software, and cross-platform systems such as Linux, Android, and macOS. Certifications he holds include Microsoft Certified Solutions Associate (MCSA), Cisco Certified Network Professional (CCNP), VMware Certified Professional (VCP), and CompTIA A+ and Network+. Mauro is a recognized Microsoft MVP and has also been a long-time contributor to Windows Central. You can follow him on YouTube, Threads, BlueSky, X (Twitter), LinkedIn and About.me. Email him at Contact@Pureinfotech.com.\",\"sameAs\":[\"https:\/\/pureinfotech.com\",\"https:\/\/x.com\/@Pureinfotech\"],\"url\":\"https:\/\/pureinfotech.com\/mauro-huculak\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"What is gsudo, and how to get started? The better Linux Sudo for Windows 11 and 10 explained. - Pureinfotech","description":"To install gsudo on Windows 11 or 10, open CMD (admin)\u00a0and run \"winget install --id gerardog.gsudo\". Usage gsudo or sudo plus your command.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/","og_locale":"en_US","og_type":"article","og_title":"What is gsudo, and how to get started? The better Linux Sudo for Windows 11 and 10 explained. - Pureinfotech","og_description":"To install gsudo on Windows 11 or 10, open CMD (admin)\u00a0and run \"winget install --id gerardog.gsudo\". Usage gsudo or sudo plus your command.","og_url":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/","og_site_name":"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans","article_publisher":"https:\/\/facebook.com\/pureinfotech","article_published_time":"2024-07-18T15:12:16+00:00","og_image":[{"width":1647,"height":1102,"url":"https:\/\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-gsudo-sudo-tool-hero-mauro-huculak.webp","type":"image\/webp"}],"author":"Mauro Huculak","twitter_card":"summary_large_image","twitter_creator":"@Pureinfotech","twitter_site":"@Pureinfotech","twitter_misc":{"Written by":"Mauro Huculak","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#article","isPartOf":{"@id":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/"},"author":{"name":"Mauro Huculak","@id":"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43"},"headline":"What is gsudo, and how to get started? The better Linux Sudo for Windows 11 and 10 explained.","datePublished":"2024-07-18T15:12:16+00:00","mainEntityOfPage":{"@id":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/"},"wordCount":736,"publisher":{"@id":"https:\/\/pureinfotech.com\/#organization"},"image":{"@id":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-gsudo-sudo-tool-hero-mauro-huculak.webp?fit=1647%2C1102&quality=78&strip=all&ssl=1","keywords":["Difficulty level: Advanced","How-To","Windows 10","Windows 11","Windows Help"],"articleSection":["Features","Windows"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/","url":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/","name":"What is gsudo, and how to get started? The better Linux Sudo for Windows 11 and 10 explained. - Pureinfotech","isPartOf":{"@id":"https:\/\/pureinfotech.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#primaryimage"},"image":{"@id":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-gsudo-sudo-tool-hero-mauro-huculak.webp?fit=1647%2C1102&quality=78&strip=all&ssl=1","datePublished":"2024-07-18T15:12:16+00:00","description":"To install gsudo on Windows 11 or 10, open CMD (admin)\u00a0and run \"winget install --id gerardog.gsudo\". Usage gsudo or sudo plus your command.","breadcrumb":{"@id":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#primaryimage","url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-gsudo-sudo-tool-hero-mauro-huculak.webp?fit=1647%2C1102&quality=78&strip=all&ssl=1","contentUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-gsudo-sudo-tool-hero-mauro-huculak.webp?fit=1647%2C1102&quality=78&strip=all&ssl=1","width":1647,"height":1102,"caption":"Gsudo for Windows \/ Image: Mauro Huculak"},{"@type":"BreadcrumbList","@id":"https:\/\/pureinfotech.com\/gsudo-install-use-linux-sudo-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pureinfotech.com\/"},{"@type":"ListItem","position":2,"name":"What is gsudo, and how to get started? The better Linux Sudo for Windows 11 and 10 explained."}]},{"@type":"WebSite","@id":"https:\/\/pureinfotech.com\/#website","url":"https:\/\/pureinfotech.com\/","name":"Pureinfotech \u2022 Windows 10 &amp; Windows 11 help for humans","description":"Pureinfotech is the best site to get Windows help \u2013 featuring friendly how-to guides on Windows 10, Windows 11, Xbox, and other things tech, news, deals, reviews, and more.","publisher":{"@id":"https:\/\/pureinfotech.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pureinfotech.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pureinfotech.com\/#organization","name":"Pureinfotech","url":"https:\/\/pureinfotech.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1","contentUrl":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2019\/05\/pure-logo-v45.png?fit=192%2C192&quality=78&strip=all&ssl=1","width":192,"height":192,"caption":"Pureinfotech"},"image":{"@id":"https:\/\/pureinfotech.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/facebook.com\/pureinfotech","https:\/\/x.com\/Pureinfotech","https:\/\/www.youtube.com\/user\/Pureinfotech"]},{"@type":"Person","@id":"https:\/\/pureinfotech.com\/#\/schema\/person\/bf4921a81eb4380865af70691a93af43","name":"Mauro Huculak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1cbac450402490f703560c52c3114f3e5ab02a741684eb73917885ae4a117a16?s=96&d=mm&r=g","caption":"Mauro Huculak"},"description":"Mauro Huculak is a Windows How-To Expert and founder of Pureinfotech (est. 2010). With over 21 years as a technology writer and IT Specialist, Mauro specializes in Windows, software, and cross-platform systems such as Linux, Android, and macOS. Certifications he holds include Microsoft Certified Solutions Associate (MCSA), Cisco Certified Network Professional (CCNP), VMware Certified Professional (VCP), and CompTIA A+ and Network+. Mauro is a recognized Microsoft MVP and has also been a long-time contributor to Windows Central. You can follow him on YouTube, Threads, BlueSky, X (Twitter), LinkedIn and About.me. Email him at Contact@Pureinfotech.com.","sameAs":["https:\/\/pureinfotech.com","https:\/\/x.com\/@Pureinfotech"],"url":"https:\/\/pureinfotech.com\/mauro-huculak"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/07\/windows-gsudo-sudo-tool-hero-mauro-huculak.webp?fit=1647%2C1102&quality=78&strip=all&ssl=1","jetpack-related-posts":[{"id":164356,"url":"https:\/\/pureinfotech.com\/windows-11-linux-sudo-command-prompt-powershell\/","url_meta":{"origin":170549,"position":0},"title":"Windows 11 brings Linux Sudo to Command Prompt and PowerShell","author":"Mauro Huculak","date":"February 5, 2024","format":false,"excerpt":"You can now run commands and tools using the Linux \"sudo\" command on Windows 11.","rel":"","context":"","block_context":{"text":"News","link":"https:\/\/pureinfotech.com\/category\/news\/"},"img":{"alt_text":"Windows 11 Enable sudo option","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-enable-sudo-fordevelopers-hero.webp?fit=1200%2C804&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-enable-sudo-fordevelopers-hero.webp?fit=1200%2C804&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-enable-sudo-fordevelopers-hero.webp?fit=1200%2C804&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-enable-sudo-fordevelopers-hero.webp?fit=1200%2C804&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2024\/02\/windows-11-enable-sudo-fordevelopers-hero.webp?fit=1200%2C804&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":164484,"url":"https:\/\/pureinfotech.com\/enable-sudo-windows-11\/","url_meta":{"origin":170549,"position":1},"title":"How to enable Sudo on Windows 11","author":"Mauro Huculak","date":"October 27, 2025","format":false,"excerpt":"You can now run elevated commands on Windows 11 like on Linux or macOS with \"sudo,\" and here's how to enable the feature.","rel":"","context":"","block_context":{"text":"Windows","link":"https:\/\/pureinfotech.com\/category\/windows\/"},"img":{"alt_text":"Windows 11 sudo command \/ Image: Mauro Huculak","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/01\/windows-11-enable-sudo-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/01\/windows-11-enable-sudo-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/01\/windows-11-enable-sudo-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/01\/windows-11-enable-sudo-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2025\/01\/windows-11-enable-sudo-hero.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":131711,"url":"https:\/\/pureinfotech.com\/run-linux-gui-apps-wsl-windows-10\/","url_meta":{"origin":170549,"position":2},"title":"How to install Linux GUI apps on Windows 11, 10","author":"Mauro Huculak","date":"October 31, 2024","format":false,"excerpt":"You can leverage WSL to install and run Linux GUI apps on Windows, and here's how.","rel":"","context":"","block_context":{"text":"Apps","link":"https:\/\/pureinfotech.com\/category\/apps\/"},"img":{"alt_text":"LInux GUI app on Windows 11","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/06\/linux-gui-app-windows-11-hero-mauro-huculak.webp?fit=1200%2C801&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/06\/linux-gui-app-windows-11-hero-mauro-huculak.webp?fit=1200%2C801&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/06\/linux-gui-app-windows-11-hero-mauro-huculak.webp?fit=1200%2C801&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/06\/linux-gui-app-windows-11-hero-mauro-huculak.webp?fit=1200%2C801&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2022\/06\/linux-gui-app-windows-11-hero-mauro-huculak.webp?fit=1200%2C801&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":127381,"url":"https:\/\/pureinfotech.com\/install-microsoft-edge-linux\/","url_meta":{"origin":170549,"position":3},"title":"How to install Microsoft Edge on Linux","author":"Mauro Huculak","date":"September 12, 2024","format":false,"excerpt":"You can install the Microsoft Edge browser on Linux distros using a graphical interface and commands, and here's how.","rel":"","context":"","block_context":{"text":"Apps","link":"https:\/\/pureinfotech.com\/category\/apps\/"},"img":{"alt_text":"Microsoft Edge for Ubuntu Linux install","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/02\/linux-install-microsoft-edge-hero-mauro-huculak.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/02\/linux-install-microsoft-edge-hero-mauro-huculak.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/02\/linux-install-microsoft-edge-hero-mauro-huculak.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/02\/linux-install-microsoft-edge-hero-mauro-huculak.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2023\/02\/linux-install-microsoft-edge-hero-mauro-huculak.webp?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":123865,"url":"https:\/\/pureinfotech.com\/install-powershell-7-linux\/","url_meta":{"origin":170549,"position":4},"title":"How to install PowerShell 7 on Linux","author":"Mauro Huculak","date":"June 8, 2020","format":false,"excerpt":"Microsoft PowerShell is cross-platform scripting tool, and these are the steps to install it on Linux.","rel":"","context":"","block_context":{"text":"Apps","link":"https:\/\/pureinfotech.com\/category\/apps\/"},"img":{"alt_text":"PowerShell 7 on Linux","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/06\/linux-powershell-7_.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/06\/linux-powershell-7_.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/06\/linux-powershell-7_.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/06\/linux-powershell-7_.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/06\/linux-powershell-7_.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":122843,"url":"https:\/\/pureinfotech.com\/install-slack-linux\/","url_meta":{"origin":170549,"position":5},"title":"How to install Slack on Linux","author":"Mauro Huculak","date":"April 30, 2020","format":false,"excerpt":"Slack collaboration app is now available on Linux, and these are the steps to install it using GUI or Terminal command.","rel":"","context":"","block_context":{"text":"Linux","link":"https:\/\/pureinfotech.com\/category\/linux\/"},"img":{"alt_text":"Install Slack on Ubuntu","src":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/04\/install-slack-ubuntu-linux.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/04\/install-slack-ubuntu-linux.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/04\/install-slack-ubuntu-linux.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/04\/install-slack-ubuntu-linux.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/pureinfotech.com\/wp-content\/uploads\/2020\/04\/install-slack-ubuntu-linux.jpg?fit=1200%2C750&quality=78&strip=all&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"_links":{"self":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts\/170549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/comments?post=170549"}],"version-history":[{"count":2,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts\/170549\/revisions"}],"predecessor-version":[{"id":170561,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/posts\/170549\/revisions\/170561"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/media\/170559"}],"wp:attachment":[{"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/media?parent=170549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/categories?post=170549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pureinfotech.com\/wp-json\/wp\/v2\/tags?post=170549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}