Skip to content

How to uninstall and reinstall BASH on Windows 10 – The Visual Guide

11/04/2017

Windows 10 offers the Linux BASH shell.  We’ve all installed and broken it.  So what do we do next?  The answer is to uninstall and then reinstall it.

You’ve probably unchecked “Windows features”, rebooted several times and found that didn’t work.  So here’s how you uninstall and reinstall BASH.

Step 1 – Uninstall the BASH Shell

Open CMD – as an ADMINISTRATOR

CD C:\Windows\system32

C:\WINDOWS\system32>LxRun.exe /uninstall

 

uninstall linux on windows 10

Step 2 – Reinstall the BASH Shell

C:\WINDOWS\system32>LxRun.exe /install

uninstall linux on windows 10 and reinstall it

You have to say Y to continue.

Step 3 – How to change a password on Bash

passwd

Enter the new password

Step 4 – How to update and install new packages on BASH

Download and Install the Latest Versions of BASH Installed Packages:

sudo apt-get upgrade

This will download and then install your packages – allow some time – go make a cup of coffee while it does this.

Step 5 – How to create a second user in BASH

sudo adduser uwnthesis2

Enter a new password for the user

Advertisements
Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: