How to Install Bash on Windows 10

Use the Linux command line in Windows

Gary Newell Gary Newell Writer
  • Famborough College of Technology
Gary Newell was a freelance contributor, application developer, and software tester with 20+ years in IT, working on Linux, UNIX, and Windows. lifewire's editorial guidelines
Updated on July 1, 2022

What to Know

  • Developer Mode: Right-click Start menu > select Settings > Update & Security > For developers .
  • Next: Select Developer mode > Yes > enable Windows Subsystem For Linux > restart.
  • Use bash: Right-click Start menu > select Windows PowerShell (Admin) > type " bash " > press Enter .

This article explains how to install and setup bash to use Linux commands on the 64-bit version of Windows 10.

You now have a core version of Ubuntu installed on your system without any graphical desktops or subsystem. Therefore, you can now use Linux commands to communicate with the Windows file structure. Anytime you want to run the Linux command line, open the PowerShell or the command prompt and enter bash .

What You Need to Install Bash on Windows

To run bash, your computer needs to be running a 64-bit version of Windows with a version number no lower than 14393, so update Windows 10 to the latest version before you begin. In order to run the Linux shell , you need to turn on Windows developer mode and enable the Linux subsystem.

Was this page helpful?