Win10快速启动Ubuntu bash

需求

Win10支持Linux子系统后,可以完美的使用Linux下的工具管理Windows下的资源,避免安装VirtualBox等虚拟机的开销。我们将把Ubuntu的bash程序集成到鼠标右键菜单上,这样就可以跟Git Bash一样快速实现bash的启动。

步骤

  1. 安装Linux子系统
  2. 微软商店中安装Ubuntu Linux
  3. 找到Ubuntu的安装路径,比如:C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\ubuntu1804.exe
  4. 新建注册表项\HKEY_CLASSES_ROOT\Directory\Background\shell\Bash\Command
    默认值: cmd.exe /k “C:\Users\Administrator\AppData\Local\Microsoft\WindowsApps\ubuntu1804.exe run bash”

效果

在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_41110969/article/details/88086542