需求

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”

效果

Win10下快速启动Ubuntu bash
Win10下快速启动Ubuntu bash

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2021-05-21
  • 2021-12-20
  • 2021-05-16
  • 2021-12-16
猜你喜欢
  • 2021-10-22
  • 2021-04-14
  • 2021-12-26
  • 2021-07-26
  • 2021-12-25
  • 2022-01-09
  • 2021-05-31
相关资源
相似解决方案