Skip to main content

How to install Bash on Windows 11

Microsoft’s Windows Subsystem for Linux 2 was released nearly 3 years ago. This brought the ability to run the Bash shell and run Linux binary executables that you’d be able to run on Ubuntu Linux.

Microsoft has since only continued to improve its Windows Subsystem for Linux, and an update in a Windows 10 preview build back in mid-2020 made it easier to install Bash. That method carried over to Windows 11. To install Bash, open Windows Terminal as an admin. You can do this by right-clicking the Windows icon and selecting “Windows Terminal (Admin)” from the power user menu. (If you’re on Windows 10, you may see it listed as “Windows Powershell (Admin)” in the menu.)

Bash Install

Run Windows Terminal as an admin

In Windows Terminal, run this command:

wsl --install

Bash Install

The command to install WSL


Windows will then begin downloading and installing Virtual Machine Platform, Windows Subsystem for Linux, WSL Kernel, and GUI App Support. It will also download Ubuntu, but will install it after a reboot. This process could take several minutes.

Once all of the assets are downloaded, you’ll need to reboot your system for the changes to take effect. You can go the traditional route of rebooting your PC or, since you’re already in the terminal, run this command:

shutdown /r /t 0

Bash Install

The command to restart your PC

Once your PC has rebooted, installation will continue automatically. After Ubuntu has successfully downloaded and installed, you’ll be prompted to create a username and password. Once entered, Ubuntu will fire up, and you’ll be ready to start using Bash in Windows, to your heart’s content. 

Comments

Popular posts from this blog

How to lock any file or folder without any software.

  With this trick, you can create a secure password protected  folder  in Windows which no one except you can access. To use this trick, follow the instructions given below:-   1.  Open  Notepad . 2.   Copy and paste  the exact code given below:- cls @ECHO OFF title computer-tricks-corner.blogspot.com if  EXIST  "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto  UNLOCK if NOT EXIST MyFolder goto MDMyFolder :CONFIRM echo Are you sure to lock this folder? (Y/N) set/p "cho=>" if %cho%==Y goto LOCK if %cho%==y goto LOCK if %cho%==n goto END if %cho%==N goto END echo  Invalid  choice. goto CONFIRM :LOCK ren MyFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" echo Folder locked goto End :UNLOCK echo Enter password to Unlock Your Secure Folder set/p "pass=>" if NOT %pass%== computer-tricks-corner.blogspot.com got

How to Deal With Your Drivers Issues

For those of you who are really new to this, drivers are software that make the connection between your hardware (motherboard, graphic cards, sound card, printer, etc) and your operating system. Each hardware component has its own driver (which works on specific Windows versions), and if you don't have the correct driver installed, the respective device will either run incorrectly or not run at all. So, after you've reinstalled Windows (or installed it for the first time), you are going to need drivers to make your computer fully operational. The first and easiest solution is to install them is by using the CDs that came along with your hardware. If that's no longer possible because the respective CD is no longer available or the drivers on it aren't compatible with your Windows version, you will have to  improvise . My favorite solution in this situation is to use a combination of two programs: 3DP Net and 3DP Chip. Both of them are completely free and require