How to Install and Setup BASH on Windows 10

How to Install and Setup BASH on Windows 10

How to Install and Setup BASH on Windows 10 GA S REGULAR Menu Lifewire Tech for Humans Newsletter! Search Close GO Software & Apps > Windows

How to Install Bash on Windows 10

Use the Linux command line in Windows

By 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 Tweet Share Email Tweet Share Email Windows The Ultimate Laptop Buying Guide

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. okubax / Flickr

How to Turn on Windows Developer Mode

To enable developer functions for Windows: Right-click the Start menu and select Settings. Select Update & Security. Select For developers on the left side. Select Developer mode. Select Yes to confirm, then wait for the developer package to install. Type Windows Features in the desktop search bar and select Turn Windows Features On Or Off. Check the box beside Windows Subsystem For Linux and select OK. Select Restart now in the dialog box to reboot your computer to apply the changes.

How to Use Bash in Windows

After your computer reboots, you're ready to set up bash for Windows: Go to the Microsoft Store and select the Linux distribution of your choice. Install it then launch it. Wait for the distribution to finish installing, then create a username in the command window and press Enter. During the first-run process, you'll have to engage in some basic configuration, depending on the distribution. Often, you must specify a username and password. After the installation is successful, close the window and right-click the Start menu, then select Windows PowerShell (Admin). You may be prompted to enter your Windows administrator password. Type bash in the terminal window and press Enter. 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. Access the Control Panel to tell if you're running the 32-bit or 64-bit version of Windows. Was this page helpful? Thanks for letting us know! Get the Latest Tech News Delivered Every Day Subscribe Tell us why! Other Not enough details Hard to understand Submit More from Lifewire How To Run the Bash Command Line in Windows 10 How to Fix a Frozen Windows 10 Taskbar What Is the Windows Terminal & How Does It Work? How to Find a Windows 11 Product Key What Version of Windows Do I Have? Command Availability Across Microsoft Operating Systems Windows 10 Battery Report: What It Is And How to Use It How to Open File Explorer in Windows 11 How to Upgrade From Windows 7 to Windows 10 Windows 10: Release Date, Editions, Features, and More How to Open Command Prompt (Windows 11, 10, 8, 7, etc.) 15 Best Free Remote Access Software Tools (Oct. 2022) The 8 Best Android Emulators for Windows 10 and Windows 11 How to Open an Elevated Command Prompt in Windows 35 Best Free Data Destruction Tools (October 2022) Snappy Driver Installer Review (Free Driver Updater) Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up Newsletter Sign Up By clicking “Accept All Cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage, and assist in our marketing efforts. Cookies Settings Accept All Cookies
Share:
0 comments

Comments (0)

Leave a Comment

Minimum 10 characters required

* All fields are required. Comments are moderated before appearing.

No comments yet. Be the first to comment!