How to Uninstall (or Reinstall) Windows 10’s Ubuntu Bash Shell
Windows 10’s new Ubuntu-based Bash shell doesn’t function like a normal program. To uninstall it or reset its state to get a fresh Linux environment, you’ll need to use a few special commands.
All of the below commands can either be run in a Command Prompt window or a PowerShell window.
Right-click the Start button or press Windows+X on your keyboard and select “Command Prompt” to open a Command Prompt window. If you’d like to use PowerShell instead, you can launch PowerShell from the Start menu.
How to Uninstall the Ubuntu Environment and Keep Your Home Folder
To remove the downloaded Bash environment, open a Command Prompt window and run the following command. This will uninstall and delete the Ubuntu user environment from your system, including any Linux applications you downloaded and installed with apt-get or by compiling them from source.
lxrun /uninstall
Windows will ask you to confirm your choice. To automatically accept the confirmation–ideal if you want to use this command in a script, for example–run the lxrun /uninstall /y
command instead.
This command won’t delete your home folder and the files in it. If you’d like to completely wipe the Linux system, see the next section.
How to Uninstall the Ubuntu Environment and Delete Your Home Folder
The above command won’t delete your Ubuntu user account’s home folder. The home folder contains user preferences and files. If you install a new Ubuntu user space image, the files in your home folder will be preserved and carried over.
If you want to prevent this from happening, you’ll need to remove the downloaded Bash environment and completely wipe your home folder. To do so, run the following command:
lxrun /uninstall /full
You’ll be asked to confirm your choice. To automatically accept the confirmation, run the lxrun /uninstall /y /full
command instead.
How to Reinstall the Ubuntu Environment
To reinstall the Bash environment, you can just run the bash
command again, as you did when installing Bash the first time. If a Ubuntu user space image isn’t installed, it will automatically download and install it.
You can also run the following command yourself. This is the same command that bash.exe automatically runs if you launch it without a Ubuntu user space image installed.
lxrun /install
Whether you run bash
or lxrun /install
, the command will ask you to confirm your choice and enter a username and password for the user account in the Bash environment.
To skip this process, you can run the following command instead. This command will automatically agree to the prompts, setting the “root” account as the default user account without a password. This is helpful if you want to automate the process of installing Bash in a script.
lxrun /install /y
How to Remove Windows 10’s Bash Tools Completely
If you’d like to remove the bash.exe tool and the Windows Subsystem for Linux from your computer completely, you’ll need to revisit the “Turn Windows Features On or Off” dialog in the Control Panel.
To find it, open the Control Panel and head to Programs > Turn Windows Features On or Off.
Uncheck the “Windows Subsystem for Linux” option here and click OK. Windows will uninstall the Windows Subsystem for Linux, bash.exe, and lxrun.exe commands. You can always revisit the Windows Features dialog to reinstall them in the future.
相关推荐
介绍卸载clearcase的步骤,一步一步
怎样卸载oracl,因为oracl一旦安装了,没有成功,再去卸载是非常困难的。此文档将从各个方面去考虑卸载oracl。
卸载 Windows Defender
How to uninstall MetaWin from your system MetaWin is a Windows application. Read below about how to uninstall it from your computer. It was coded for Windows by MSRsoft. Go over here for more details ...
A: Try to uninstall and reinstall the affected application may help. ******** Disclaimer ******** For documents and files available from this server, we do not warrant or assume any legal ...
Uninstall Cortana,windows10小娜卸载脚本中文版。完美将Cortana 从 Windows 10 中移除
adb shell rm [options] <files or directory> 13 adb shell mkdir [options] <directory name> 15 adb shell touch [options] <file > 15 adb shell pwd 16 adb shell cp [options] <source> <dest> 16 adb shell ...
windows软件卸载工具 Uninstall Tool v3.5.10 Build 5670(geek 的专业Pro版)
Uninstall Tool是CrystalIdea Software出品的一款强大而灵活的Windows标准”添加/删除程序”工具的替代软件.它能快速,安全而方便的删除不必要的应用程序并提高您的电脑的效能.Uninstall Tools支持微软Windows 2000,...
UninstallTool类似于程序功能中的卸载,可将各种系统自带的,人为安装的软件卸载干净
selected, Windows applications to display PRWin98 menus and/or windows. To unload Mask: - In an application's main window, display its Control menu and choose 'Unload Mask' from the Mask popup ...
Uninstall Tool是由CrystalIdea Software出品的一款可以用来替代“添加/删除程序”的工具。允许您显示隐藏的安装程序,按名称过滤...Uninstall Tools支持微软 Windows 2000、XP、2003、Vista操作系统(含64位操作系统)。
218781302755297S-078838_uninstall_vba.bat
虽然 Windows 自带的有程序卸载功能,但是功能上相对较弱,今天不妨来尝试下这这款专业的程序卸载工具。 Uninstall Tool Portable 专业卸载工具 Uninstall Tool Portable 是一个类似于Total Uninstall Pro的小巧、...
how to install or uninstall apk to or from android emulator
HOW TO UNINSTALL ================ Exit from JBuilder, and remove easysearch.jar from your JBuilder lib/ext folder. HOW TO USE ========== 1. Select some text in JBuilder Editor pane or copy ...
Tool for uninstall programs
Uninstall.exe
完美卸载win10小娜卸载工具Uninstall Cortana,只需要去到解压文件目录下,用管理员运行Uninstall Cortana.cmd即可
优秀的卸载工具套装,具有两个组件:uninstall tool,revouninstall.