win 10:linux子系统多标签bash

w--*_*w-- 14 windows-10 windows-subsystem-for-linux

有没有办法在 win 10 中为 linux 子系统获取多选项卡 bash 窗口?像conemu或Multi-Tab putty或控制台(http://sourceforge.net/projects/console/

小智 8

您应该能够使用 MobaXterm 之类的工具并打开多个 linux 子系统选项卡。看看这篇文章并向下滚动到他打开 WSL 选项卡的演示视频:

http://blog.mobatek.net/post/mobaxterm-new-release-9.0/

另外,顺便说一句,这个 UserVoice 问题似乎已被批准但尚未实施:

https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/6509358-great-start-but-still-missing-one-of-my- cmd-desir


Abr*_*xas 7

您可以使用类似的东西是一个名为 screen 的常见 linux 实用程序。如果默认未安装,您可以使用sudo apt install screen安装后运行sudo screen

您现在可以运行命令screen来启动屏幕模拟,这些就像不可见的选项卡。要创建新的标签类型:ctrl-"a" "c",在标签之间切换,请键入 ctrl-"a" "n"

这基本上可以让您同时运行 shell。ctrl-"a" "d" 将您分离回您的主 shell。

更多内容可以在这里找到:https : //www.rackaid.com/blog/linux-screen-tutorial-and-how-to/

  • 仅供参考,在启动 screen 后使用 `su John` 或任何你的用户,这样你就不会在 w root privs 周围徘徊。 (2认同)

小智 5

Windows 终端对我来说快速而轻松地工作:https : //www.microsoft.com/en-ca/p/windows-terminal-preview/9n0dx20hk701?activetab=pivot : overviewtab

  • 是的,现在正在使用这个。我也会注意到这一点。https://github.com/microsoft/terminal (2认同)
  • 你如何在 bash 中使用它? (2认同)