<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Soul Of Free Loop &#187; 终端</title>
	<atom:link href="https://zohead.com/archives/tag/terminal/feed/" rel="self" type="application/rss+xml" />
	<link>https://zohead.com</link>
	<description>Uranus Zhou&#039;s Blog</description>
	<lastBuildDate>Sat, 19 Jul 2025 15:42:46 +0000</lastBuildDate>
	<language>zh-CN</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8</generator>
	<item>
		<title>刚迷上screen就不得不马上移情tmux</title>
		<link>https://zohead.com/archives/terminal-screen-and-tmux/</link>
		<comments>https://zohead.com/archives/terminal-screen-and-tmux/#comments</comments>
		<pubDate>Mon, 14 May 2012 15:33:11 +0000</pubDate>
		<dc:creator><![CDATA[Uranus Zhou]]></dc:creator>
				<category><![CDATA[工具]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[tmux]]></category>
		<category><![CDATA[终端]]></category>

		<guid isPermaLink="false">http://zohead.com/?p=157</guid>
		<description><![CDATA[本文同步自（如浏览不正常请点击跳转）：https://zohead.com/archives/terminal-screen-and-tmux 一个星期之前调试代码时用上 GNU screen，这个多终端模拟器，对我而言很大程度上摆脱了调试时必须开N个 SecureCRT 远程登录标签的郁闷，而且很多 Linux 发行版上都已经自带 screen 包，直接安装即可，也可以在这下载自己编译： http://www.gnu.org/software/screen/ screen 的快捷键操作非常简单（文本模式下的 Linux 必须要N多快捷键的说），安装之后，在一个终端里运行 screen 命令就 [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>本文同步自（如浏览不正常请点击跳转）：<a href="https://zohead.com/archives/terminal-screen-and-tmux" target="_blank">https://zohead.com/archives/terminal-screen-and-tmux</a></p>
<p>一个星期之前调试代码时用上 GNU screen，这个多终端模拟器，对我而言很大程度上摆脱了调试时必须开N个 SecureCRT 远程登录标签的郁闷，而且很多 Linux 发行版上都已经自带 screen 包，直接安装即可，也可以在这下载自己编译：</p>
<p><a href="http://www.gnu.org/software/screen/" target="_blank">http://www.gnu.org/software/screen/</a></p>
<p>screen 的快捷键操作非常简单（文本模式下的 Linux 必须要N多快捷键的说），安装之后，在一个终端里运行 screen 命令就可以启动，可以在一个终端里再创建新的 shell，使用快捷键在不同的 shell 之间切换，使用 screen 的 detach shell 可实现更好的后台任务处理，用起来还是比较 happy，无奈 GNU screen 也有一些缺陷：</p>
<p><em>1、不支持在一个 shell window 里再拆分子窗口，也就是像 vim 的多窗口编辑效果；</em><br />
<em> 2、对 xterm 终端支持一般；</em><br />
<em> 3、不能自己根据启动 screen 时的窗口大小调节新 shell 的大小，这个小郁闷；</em><br />
<em> ......</em></p>
<p>今天看到一哥们分享的 tmux 终端复用工具，立马感觉我要不淡定的移情了，在此下载：</p>
<p><a href="http://sourceforge.net/projects/tmux/" target="_blank">http://sourceforge.net/projects/tmux/</a></p>
<p>tmux 对比 screen 的优点：单个 shell window 拆分很强大，移动切换 shell pane 很强大，完美支持 xterm 终端和集成原 shell 大小，BSD license，命名 shell window，OOO，受不了先上图：</p>
<p><a href="http://zohead.com/wp-content/uploads/tmux-multi-screen.jpg" target="_blank"><img class="alignnone" title="tmux终端" src="http://zohead.com/wp-content/uploads/tmux-multi-screen.jpg" alt="tmux终端" width="492" height="263" /></a></p>
<p>图中是我实际使用的一个环境，pane 0 查看 man 帮助，pane 1 修改代码，pane 2 命令操作，pane 3 监控系统。</p>
<p>tmux 的快捷键和 screen 的有点类似，只是初始快捷键改为了 Ctrl+B：</p>
<p>Ctrl-B-C ：创建新窗口；<br />
Ctrl-B-D ：detach窗口，和 screen 的类似；<br />
Ctrl-B-"  ：将当前窗口拆分为上下两行；<br />
Ctrl-B-%：将当前窗口拆分为左右两列；<br />
Ctrl-B-上下左右：切换 shell pane<br />
......</p>
<p>具体请看 man tmux，果断强烈推荐了，tmux现在除了不是在每个 Linux 发行版中默认就附带这点似乎没有什么相比 screen 的缺点了（不过我还是下到了编译好的 RHEL6 上的 RPM 包，哈哈）。</p>
<p>tmux得在以后使用时继续研究咯，screen暂时抛弃，玩的开心~~~ ^_^</p>
]]></content:encoded>
			<wfw:commentRss>https://zohead.com/archives/terminal-screen-and-tmux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
