How to Install and Use the Linux Bash Shell on Windows 10

If you are a developer or someone who works with Linux-based systems, you may find it useful to have access to the Linux Bash shell on your Windows 10 computer. Here’s how to install and use the Linux Bash shell on Windows 10:

  1. Enable Windows Subsystem for Linux (WSL) feature
  • Open the Start menu and type “Turn Windows features on or off” in the search box. Click on the result that appears.
  • Scroll down and find “Windows Subsystem for Linux” and check the box to enable it.
  • Click on “OK” and wait for the feature to install.
  1. Install a Linux distribution from the Microsoft Store
  • Open the Microsoft Store and search for your preferred Linux distribution (e.g. Ubuntu, Debian, or Kali Linux).
  • Click on “Get” to download and install the Linux distribution.
  • Once the installation is complete, click on “Launch” to open the Linux Bash shell.
  1. Set up a username and password
  • When you open the Linux Bash shell for the first time, you will be prompted to set up a username and password.
  • Enter your desired username and password and press Enter.
  1. Start using the Linux Bash shell
  • Once you have set up your username and password, you will be logged into the Linux Bash shell.
  • You can now use the Linux Bash commands to navigate and perform tasks in the Linux environment.
  • To exit the Linux Bash shell, type “exit” and press Enter.

That’s it! You now have access to the Linux Bash shell on your Windows 10 computer. You can use this to run Linux commands and scripts directly from your Windows environment, making it easier to work with Linux-based systems.