How to Run the Bash Command Line in Windows 10 – Knowligent
How to Run the Bash Command Line in Windows 10

How to Run the Bash Command Line in Windows 10

HomeHow to, TechHow to Run the Bash Command Line in Windows 10

This article explains how to enable, download, install, and use the Windows Subsystem for Linux (WSL) in Windows 10.

How to Run Linux/Bash on Windows 10 | Windows 10 Bash & Linux Subsystem Setup

In the Windows 10 Anniversary Update, Microsoft added the Windows Subsystem for Linux to Windows 10, and even offered (in partnership with Canonical) a fully functional version of Ubuntu Linux. Officially, it was shell-only access, though it took about three nanoseconds for people to figure out how to run regular Linux apps in X sessions on Windows 10.

The Microsoft Store offers officially supported Linux distributions for Ubuntu, openSUSE Leap, SUSE Linux Enterprise, Debian/GNU Linux, and Kali Linux. Each of these distributions offers command line access to Linux, from which you can run bash scripts or Linux command line tools.

By default, you cannot use WSL. Instead, you must enable WSL as an optional Windows feature. Open the Windows Features Wizard and check the box, or open a PowerShell prompt as an administrator and run: