{"id":313277,"date":"2021-07-30T15:00:12","date_gmt":"2021-07-30T12:00:12","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-install-the-windows-subsystem-for-linux-on-windows-11\/"},"modified":"2021-07-30T15:00:12","modified_gmt":"2021-07-30T12:00:12","slug":"how-to-install-the-windows-subsystem-for-linux-on-windows-11","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-install-the-windows-subsystem-for-linux-on-windows-11\/","title":{"rendered":"#How to Install the Windows Subsystem for Linux on Windows 11"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a3a97434ea29\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a3a97434ea29\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-the-windows-subsystem-for-linux-on-windows-11\/#How_WSL_Works_on_Windows_11\" >How WSL Works on Windows 11<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-the-windows-subsystem-for-linux-on-windows-11\/#The_Fast_Way_Install_WSL_with_a_Command\" >The Fast Way: Install WSL with a Command<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-the-windows-subsystem-for-linux-on-windows-11\/#The_Slow_Way_Enable_WSL_and_Install_a_Distro\" >The Slow Way: Enable WSL and Install a Distro<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Install the Windows Subsystem for Linux on Windows 11&#8221;<\/strong><\/p>\n<div>\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage alignnone size-full wp-image-744355\" srcset=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/07\/windows-11-ubuntu-neofetch-2.png?width=398&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 400w, https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/07\/windows-11-ubuntu-neofetch-2.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1 1200w\" sizes=\"auto, 400w, 1200w\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/07\/windows-11-ubuntu-neofetch-2.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"A Linux terminal showing the Ubuntu logo in the Windows Terminal on Windows 10.\" width=\"1200\" height=\"675\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The Windows Subsystem for Linux (WSL) lets you run Linux software on your Windows 11 PC. When you enable WSL, Windows will install a custom-built Linux kernel. You can then install Ubuntu or another Linux distribution of your choice.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_WSL_Works_on_Windows_11\"><\/span>How WSL Works on Windows 11<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can enable the Windows Subsystem for Linux (WSL) on all editions of <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/737031\/windows-11-whats-new-in-microsofts-new-os\/\">Windows 11\u2014even Windows 11 Home. (You can also install WSL on Windows 10.)<\/p>\n<p>Like more recent versions of Windows 10, Windows 11 uses WSL 2. This second version is redesigned and runs a full Linux kernel in a Hyper-V hypervisor for improved compatibility. When you enable the feature, Windows 11 <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">download<\/a>s a Microsoft-built Linux kernel\u00a0that it runs in the background. Windows Update keeps the kernel updated. (You can use your own custom Linux kernel if you prefer, too.)<\/p>\n<p>To use WSL, you\u2019ll need to install a Linux distribution. By default, WSL installs Ubuntu. This will give you access to a full Ubuntu command-line environment using the Bash shell or any other command-line shell of your choice.<\/p>\n<p>You can access your Linux shell environments in the Windows Terminal app included with Windows 11, too.<\/p>\n<p>You can also run graphical Linux apps out of the box (Just install them in the Linux command-line environment and run the command.). Windows 11 also includes support for running Linux apps with GPU access, making GPU-accelerated Linux computing workloads run well on Windows.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"The_Fast_Way_Install_WSL_with_a_Command\"><\/span>The Fast Way: Install WSL with a Command<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Microsoft has made this process extremely simple on Windows 11. You can enable the Windows Subsystem for Linux and install a Linux distribution like Ubuntu with a single command.<\/p>\n<p>To do this, you will need to use a command-line window with Administrator permissions. We\u2019ll do this with the Windows Terminal, although you can also just launch Command Prompt.<\/p>\n<p>To launch a Windows Terminal with Administrator permissions, right-click the Start button on the taskbar or press Windows+X and click \u201cWindows Terminal (Admin).\u201d (You can also find the Windows Terminal shortcut in your Start menu\u2014right-click it and select \u201cRun as Administrator.\u201d) Agree to the User Account Control prompt that appears.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-744343\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/07\/a1-launch-terminal.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Right-click the Start button and select &quot;Windows Terminal (Admin).&quot;\" width=\"650\" height=\"379\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>To enable the Windows Subsystem for Linux and install Ubuntu, which is the default distribution, just run the following command:<\/p>\n<pre>wsl --install<\/pre>\n<p>When the process is complete, Windows will ask you to reboot your PC. Restart your computer. You\u2019ll be able to use your Linux system after you do. (You can right-click the Start menu and click Shut Down or Sign Out &gt; Restart to quickly reboot.)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-744344\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/07\/a2-install-wsl-and-ubuntu.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Run the &quot;wsl --install&quot; command.\" width=\"650\" height=\"339\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>To list other available Linux distributions, run the following command instead. This lists (-l) distributions that are available online (-o).<\/p>\n<pre>wsl -l -o<\/pre>\n<p>You can install a Linux distribution of your choice by running the following command, replacing \u201cName\u201d with the name of the Linux distro, as displayed in the \u201cName\u201d column:<\/p>\n<pre>wsl --install -d Name<\/pre>\n<p>For example, to install Debian instead of Ubuntu, you\u2019d run:<\/p>\n<pre>wsl --install -d Debian<\/pre>\n<p>You can also run this command multiple times to install several Linux distributions on your system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-744345\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/07\/a3-list-distros.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"List available Linux distributions and install one.\" width=\"650\" height=\"358\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Once your computer has rebooted, you can launch the Linux distro that you installed from your Start menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-744349\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/07\/ubuntu-start-menu.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Launch the &quot;Ubuntu&quot; shortcut.\" width=\"648\" height=\"399\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll also find it as an option in the Windows Terminal app. Click the down arrow to the right of the new tab \u201c+\u201d button on the tab bar and select the Linux distribution that you installed.<\/p>\n<blockquote class=\"admonishment_tip\"><p><strong>Tip:<\/strong> If you don\u2019t see the Linux distribution that you installed in the Windows Terminal, launch it from your Start menu first. After it completes its first-run setup process, it will appear here.<\/p><\/blockquote>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-744350\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/07\/powershell-ubuntu-terminal.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Click the down arrow and select your Linux distribution.\" width=\"655\" height=\"296\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Now, you can use the Linux shell just as if you were sitting in front of a PC Linux\u2014or as if you were remotely connected to a server running Linux. You\u2019ll just need to <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.howtogeek.com\/412055\/37-important-linux-commands-you-should-know\/\">know Linux commands.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"The_Slow_Way_Enable_WSL_and_Install_a_Distro\"><\/span><a rel=\"nofollow noopener\" target=\"_blank\" name=\"autotoc_anchor_2\">The Slow Way: Enable WSL and Install a Distro<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can also enable the Windows Subsystem for Linux (WSL) the older way. This takes more clicking, and we recommend just running the command above.<\/p>\n<p>To do this, open your Start menu and search for \u201cWindows features.\u201d (You can press the Windows key to open the Start menu and just start typing.) Launch the \u201cTurn Windows Features On or Off\u201d shortcut.<\/p>\n<p>Enable the \u201cWindows Subsystem for Linux\u201d checkbox here and click \u201cOK.\u201d You will be prompted to reboot your computer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-744346\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/07\/b1-install-wsl.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Enable the &quot;Windows Subsystem for Linux&quot; option and click &quot;OK.&quot;\" width=\"646\" height=\"368\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>After you do, open the Microsoft Store app and search for the Linux distribution that you want to use. For example, you might search for \u201cUbuntu.\u201d<\/p>\n<p>Install the Linux distribution that you want to use (like Ubuntu) as you would any other application. Just click the \u201cInstall\u201d button on its Store page.<\/p>\n<p>You can now launch it from your Start menu just as if it were installed from the command above.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-744347\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/07\/b2-install-ubuntu.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Install Ubuntu from the Microsoft Store.\" width=\"650\" height=\"454\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/744328\/how-to-install-the-windows-subsystem-for-linux-on-windows-11\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Install the Windows Subsystem for Linux on Windows 11&#8221; The Windows Subsystem for Linux (WSL) lets you run Linux software on your Windows 11 PC. When you enable WSL, Windows will install a custom-built Linux kernel. You can then install Ubuntu or another Linux distribution of your choice. How WSL Works on Windows&#8230;<\/p>\n","protected":false},"author":1,"featured_media":313278,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2021\/07\/windows-11-ubuntu-neofetch-2.png?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-313277","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/313277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=313277"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/313277\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/313278"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=313277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=313277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=313277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}