<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://info.stat.cmu.edu/index.php?action=history&amp;feed=atom&amp;title=Terminal_multiplexers</id>
	<title>Terminal multiplexers - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://info.stat.cmu.edu/index.php?action=history&amp;feed=atom&amp;title=Terminal_multiplexers"/>
	<link rel="alternate" type="text/html" href="https://info.stat.cmu.edu/index.php?title=Terminal_multiplexers&amp;action=history"/>
	<updated>2026-11-05T22:52:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://info.stat.cmu.edu/index.php?title=Terminal_multiplexers&amp;diff=846&amp;oldid=prev</id>
		<title>Ajshen at 03:35, 29 June 2026</title>
		<link rel="alternate" type="text/html" href="https://info.stat.cmu.edu/index.php?title=Terminal_multiplexers&amp;diff=846&amp;oldid=prev"/>
		<updated>2026-06-29T03:35:14Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 03:35, 29 June 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Terminal and Command Line]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Parallelization]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;“Terminal Multiplexers”, like &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt;, are extremely useful tools for running jobs on the department servers. The primary reason to use them is so you can run a job on the server and not need to keep your connection with the server open (e.g.&amp;amp;nbsp;you can close your computer, go to sleep, etc. while your job runs). It’s often the case that your connection to the server might disconnect even if your computer just goes to sleep or disconnects from the internet for a minute.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;“Terminal Multiplexers”, like &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt;, are extremely useful tools for running jobs on the department servers. The primary reason to use them is so you can run a job on the server and not need to keep your connection with the server open (e.g.&amp;amp;nbsp;you can close your computer, go to sleep, etc. while your job runs). It’s often the case that your connection to the server might disconnect even if your computer just goes to sleep or disconnects from the internet for a minute.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key infowiki:diff:1.41:old-386:rev-846:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Ajshen</name></author>
	</entry>
	<entry>
		<id>https://info.stat.cmu.edu/index.php?title=Terminal_multiplexers&amp;diff=386&amp;oldid=prev</id>
		<title>Areinhar: Formatting improvements</title>
		<link rel="alternate" type="text/html" href="https://info.stat.cmu.edu/index.php?title=Terminal_multiplexers&amp;diff=386&amp;oldid=prev"/>
		<updated>2025-10-24T15:13:58Z</updated>

		<summary type="html">&lt;p&gt;Formatting improvements&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:13, 24 October 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;“Terminal Multiplexers”, like &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt;, are extremely useful tools for running jobs on the department servers. The primary reason to use them is so you can run a job on the server and not need to keep your connection with the server open (e.g.&amp;amp;nbsp;you can close your computer, go to sleep, etc. while your job runs). It’s often the case that your connection to the server might disconnect even if your computer just goes to sleep or disconnects from the internet for a minute.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;= Terminal Multiplexers (Screen and Tmux) =&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There are two major terminal multiplexer options: &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt;. The &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Internet &lt;/ins&gt;recommends &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt; (but some people in the department use &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;“Terminal Multiplexers”, like &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt; are extremely useful tools for running jobs on the department server. The primary reason to use them is so you can run a job on the server and not need to keep your connection with the server open (e.g.&amp;amp;nbsp;you can close your computer, go to sleep, etc. while your job runs). It’s often the case that your connection to the server might disconnect even if your computer just goes to sleep or disconnects from the internet for a minute.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There are two major terminal multiplexer options: &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt;. The &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;internet &lt;/del&gt;recommends &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt; (but some people in the department use &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt;).&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In terms of usage, the most important commands 1. creating a new session 2. detaching but not closing as session 3. reattaching a session and 4. closing a session.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;In terms of usage, the most important commands 1. creating a new session 2. detaching but not closing as session 3. reattaching a session and 4. closing a session.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l18&quot;&gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 15:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#*preserves panels / windows even when you detach the session  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#*preserves panels / windows even when you detach the session  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#*maybe a little safer in closing sessions (confirms request)  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#*maybe a little safer in closing sessions (confirms request)  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt;:  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#&amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt;:  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#*a stable tool (&amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt; is a little more in flux)  &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#*a stable tool (&amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt; is a little more in flux)  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key infowiki:diff:1.41:old-32:rev-386:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Areinhar</name></author>
	</entry>
	<entry>
		<id>https://info.stat.cmu.edu/index.php?title=Terminal_multiplexers&amp;diff=32&amp;oldid=prev</id>
		<title>Skipper: Created page with &quot; = Terminal Multiplexers (Screen and Tmux) =  “Terminal Multiplexers”, like &lt;code&gt;screen&lt;/code&gt; and &lt;code&gt;tmux&lt;/code&gt; are extremely useful tools for running jobs on the de...&quot;</title>
		<link rel="alternate" type="text/html" href="https://info.stat.cmu.edu/index.php?title=Terminal_multiplexers&amp;diff=32&amp;oldid=prev"/>
		<updated>2024-03-29T23:58:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; = Terminal Multiplexers (Screen and Tmux) =  “Terminal Multiplexers”, like &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt; are extremely useful tools for running jobs on the de...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
= Terminal Multiplexers (Screen and Tmux) =&lt;br /&gt;
&lt;br /&gt;
“Terminal Multiplexers”, like &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt; are extremely useful tools for running jobs on the department server. The primary reason to use them is so you can run a job on the server and not need to keep your connection with the server open (e.g.&amp;amp;nbsp;you can close your computer, go to sleep, etc. while your job runs). It’s often the case that your connection to the server might disconnect even if your computer just goes to sleep or disconnects from the internet for a minute.&lt;br /&gt;
&lt;br /&gt;
There are two major terminal multiplexer options: &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt;. The internet recommends &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt; (but some people in the department use &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
In terms of usage, the most important commands 1. creating a new session 2. detaching but not closing as session 3. reattaching a session and 4. closing a session.&lt;br /&gt;
&lt;br /&gt;
With these four options you can start up a session (1), step away from a session / the server without killing a job you’re running (2), come back to the session you left (3) and close a session once you’re done with it (4). The rest of the commands are icing on the cake.&lt;br /&gt;
&lt;br /&gt;
In the following sections below, we’ll present pros of both, then present sections on standard commands for both approaches. This article is currently more a place to remind yourself of what commands to use than a new introduction to the ideas. We recommend reading either of the introductions (at the end of either tool’s subsection) for get exposure to the power of these tools.&lt;br /&gt;
&lt;br /&gt;
== Comparisons ==&lt;br /&gt;
&lt;br /&gt;
#&amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt;: &lt;br /&gt;
#*more consistent syntax (but &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; is still pretty good) &lt;br /&gt;
#*preserves panels / windows even when you detach the session &lt;br /&gt;
#*maybe a little safer in closing sessions (confirms request) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#&amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt;: &lt;br /&gt;
#*a stable tool (&amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt; is a little more in flux) &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
=== Basic commands ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;37%&amp;quot; | Action&lt;br /&gt;
! width=&amp;quot;33%&amp;quot; | Command&lt;br /&gt;
! width=&amp;quot;29%&amp;quot; | Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Start new session [important]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;lt;code&amp;gt;screen&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| Starting a named session&lt;br /&gt;
| &amp;lt;code&amp;gt;screen -S _session_name_&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| List current sessions&lt;br /&gt;
| &amp;lt;code&amp;gt;screen -list&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Detach session [important]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;lt;code&amp;gt;(Ctrl+a)+d&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Attach/ reopen session [important]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;lt;code&amp;gt;screen -r _session_name_&amp;lt;/code&amp;gt;&lt;br /&gt;
| If only one session is open you can just use &amp;lt;code&amp;gt;screen -r&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Close session [important]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;lt;code&amp;gt;Ctrl+d&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Kill a session you are not currently in&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;lt;code&amp;gt;screen -XS _session_name_ quit&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| enter scrollback/copy mode&lt;br /&gt;
| &amp;lt;code&amp;gt;Ctrl+a+[&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| end scrollback/paste buff&lt;br /&gt;
| &amp;lt;code&amp;gt;Ctrl+a+]&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Window/panel based commands ===&lt;br /&gt;
&lt;br /&gt;
Having multiple panels / windows going in a single session at the same time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;37%&amp;quot; | Action&lt;br /&gt;
! width=&amp;quot;33%&amp;quot; | Command&lt;br /&gt;
! width=&amp;quot;29%&amp;quot; | Notes&lt;br /&gt;
|-&lt;br /&gt;
| Create new window&lt;br /&gt;
| &amp;lt;code&amp;gt;(Ctrl+a)+c&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| split terminal horizontally, and create a new window&lt;br /&gt;
| &amp;lt;code&amp;gt;(Ctrl+a)+S&amp;lt;/code&amp;gt;&amp;amp;nbsp; +&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;(Ctrl+a)+c&amp;lt;/code&amp;gt;&lt;br /&gt;
| Note the capital S.&amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| split terminal vertically, and create a new window&lt;br /&gt;
| &amp;lt;code&amp;gt;(Ctrl+a)+&amp;amp;#124;&amp;amp;nbsp;&amp;lt;/code&amp;gt;+&amp;amp;nbsp;&amp;amp;nbsp;&amp;lt;code&amp;gt;(Ctrl+a)+c&amp;lt;/code&amp;gt;&lt;br /&gt;
| This only works if the screen is a high enough version.&lt;br /&gt;
|-&lt;br /&gt;
| move between windows&lt;br /&gt;
| &amp;lt;code&amp;gt;(Ctrl+a)+&amp;lt;/code&amp;gt; …&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| - next window&lt;br /&gt;
| &amp;lt;code&amp;gt;+n&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| - previous window&lt;br /&gt;
| &amp;lt;code&amp;gt;+p&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| - pick from list&lt;br /&gt;
| &amp;lt;code&amp;gt;+&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| Move between splits&lt;br /&gt;
| &amp;lt;font face=&amp;quot;monospace&amp;quot;&amp;gt;(Ctrl+a)+ Tab&amp;lt;/font&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== External Links ===&lt;br /&gt;
&lt;br /&gt;
*Introduction: [https://www.howtogeek.com/662422/how-to-use-linuxs-screen-command/ howtogeek.com], [https://linuxize.com/post/how-to-use-linux-screen/ linuxize.com] &lt;br /&gt;
*Cheat sheets: [http://www.pixelbeat.org/lkdb/screen.html pixelbeat.org]. &lt;br /&gt;
&lt;br /&gt;
== &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt; ==&lt;br /&gt;
&lt;br /&gt;
=== Basic commands ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! width=&amp;quot;37%&amp;quot; | Action&lt;br /&gt;
! width=&amp;quot;33%&amp;quot; | Command&lt;br /&gt;
! width=&amp;quot;29%&amp;quot; | Notes&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Start session [important]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;lt;code&amp;gt;tmux&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| Start named session&lt;br /&gt;
| &amp;lt;code&amp;gt;tmux new -s _session_name_&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| Rename session&lt;br /&gt;
| &amp;lt;code&amp;gt;(Ctrl+b)+:&amp;lt;/code&amp;gt; -&amp;gt; then &amp;lt;code&amp;gt;rename-session -t _current_name_ _new_name_&amp;lt;/code&amp;gt;&lt;br /&gt;
| You don’t have to include &amp;lt;code&amp;gt;-t _current_name_&amp;lt;/code&amp;gt; if you want to rename a session you are in.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Detach session [important]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;lt;code&amp;gt;(Ctrl+b)+d&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Attach/ reopen session [important]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;lt;code&amp;gt;tmux attach-session -t _session_name_&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;Close session [important]&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
| &amp;lt;code&amp;gt;tmux kill-session -t _session_name_&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| List current sessions&lt;br /&gt;
| &amp;lt;code&amp;gt;tmux ls&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Window/panel based commands ===&lt;br /&gt;
&lt;br /&gt;
Having multiple panels / windows going in a single session at the same time.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Action&lt;br /&gt;
! Command&lt;br /&gt;
! Notes&lt;br /&gt;
|-&lt;br /&gt;
| new window&lt;br /&gt;
| &amp;lt;code&amp;gt;(Ctrl+b)+c&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| see window numbering&lt;br /&gt;
| &amp;lt;code&amp;gt;(Ctrl+b)+q&amp;lt;/code&amp;gt;&lt;br /&gt;
| flashes number of each panel open&lt;br /&gt;
|-&lt;br /&gt;
| close current window&lt;br /&gt;
| &amp;lt;code&amp;gt;(Ctrl+b)+&amp;amp;&amp;lt;/code&amp;gt;&amp;amp;nbsp;-&amp;gt; then &amp;lt;code&amp;gt;y&amp;lt;/code&amp;gt; close current window&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| create panel splitting&lt;br /&gt;
| &amp;lt;code&amp;gt;(Ctrl+b)+&amp;lt;/code&amp;gt; …&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| - horizontal splitting&lt;br /&gt;
| &amp;lt;code&amp;gt;+”&amp;lt;/code&amp;gt;&lt;br /&gt;
| this is capital&amp;lt;code&amp;gt;&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| - vertical splitting&lt;br /&gt;
| &amp;lt;code&amp;gt;+%&amp;lt;/code&amp;gt;&lt;br /&gt;
| this is also a capital&amp;amp;nbsp;&amp;lt;code&amp;gt;%&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| - move between panels&lt;br /&gt;
| &amp;lt;code&amp;gt;+&amp;lt;/code&amp;gt; arrow keys&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| move between windows&lt;br /&gt;
| &amp;lt;code&amp;gt;(Ctrl+b)+&amp;lt;/code&amp;gt; …&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| - next window&lt;br /&gt;
| &amp;lt;code&amp;gt;+n&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|-&lt;br /&gt;
| - previous window&lt;br /&gt;
| &amp;lt;code&amp;gt;+p&amp;lt;/code&amp;gt;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
| &amp;amp;nbsp;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== External Links ===&lt;br /&gt;
&lt;br /&gt;
*Introduction: [https://www.howtogeek.com/671422/how-to-use-tmux-on-linux-and-why-its-better-than-screen/ howtogeek.org] &lt;br /&gt;
*Cheat sheets: [https://www.howtogeek.com/671422/how-to-use-tmux-on-linux-and-why-its-better-than-screen/ howtogeek.org] (see the bottom of the article).&lt;/div&gt;</summary>
		<author><name>Skipper</name></author>
	</entry>
</feed>