<?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>Arricc &#187; screen</title>
	<atom:link href="http://www.arricc.net/tag/screen/feed" rel="self" type="application/rss+xml" />
	<link>http://www.arricc.net</link>
	<description>50% IT snippets that I couldn&#039;t readily find existing help on. 50% drivel.</description>
	<lastBuildDate>Wed, 02 Mar 2011 23:44:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Screen</title>
		<link>http://www.arricc.net/screen.php</link>
		<comments>http://www.arricc.net/screen.php#comments</comments>
		<pubDate>Sun, 02 Jul 2006 19:52:39 +0000</pubDate>
		<dc:creator>Fizzgig</dc:creator>
				<category><![CDATA[Tech]]></category>
		<category><![CDATA[cheatsheet]]></category>
		<category><![CDATA[screen]]></category>

		<guid isPermaLink="false">http://wp.arricc.net/screen.php</guid>
		<description><![CDATA[A quick overview of the key combinations you&#8217;ll use 99% of the time in screen Screen is a really really handy little bit of software I leave running on all the Linux boxes I run. From the man page: DESCRIPTION Screen is a full-screen window manager that multiplexes a physical ter- minal between several processes [...]]]></description>
			<content:encoded><![CDATA[<p>A quick overview of the key combinations you&#8217;ll use 99% of the time in screen</p>
<p>Screen is a really <em>really</em> handy little bit of software I leave running on all the Linux boxes I run.</p>
<p>From the man page:</p>
<blockquote style="margin-right: 0px;" dir="ltr"><p><font size="2">DESCRIPTION<br />       Screen is a full-screen window manager that multiplexes a physical ter-<br />       minal between several processes (typically interactive  shells).   Each<br />       virtual terminal provides the functions of a DEC VT100 terminal and, in<br />       addition, several control functions from the ISO 6429  (ECMA  48,  ANSI<br />       X3.64)  and ISO 2022 standards (e.g. insert/delete line and support for<br />       multiple character sets).  There is a  scrollback  history  buffer  for<br />       each virtual terminal and a copy-and-paste mechanism that allows moving<br />       text regions between windows.</font></p>
</blockquote>
<p>It goes on a bit more at length. <span id="more-12"></span>Anyway, the important thing is that it allows you to have more than one terminal session running in a single terminal and swap between them. You can also disconnect from screen and reconnect at a later date, maybe even from a different location (console as opposed to a remote putty session for example) and all the sessions will still be there, as will any programs running within them!</p>
<p>Brief overview:</p>
</p>
<table border="1" cellpadding="1" cellspacing="1">
<tbody>
<tr>
<th>Function</th>
<th>Keystroke</th>
</tr>
<tr>
<td>Attatch to/start screen</td>
<td><font face="courier new,courier,monospace" size="2"><font face="times new roman,times,serif" size="3">Type</font> &#8220;screen -RD&#8221;</font></td>
</tr>
<tr>
<td>Detatch from screen and leave it running in the background</td>
<td><font face="courier new,courier,monospace" size="2">&#8220;ctrl+a d&#8221;</font></td>
</tr>
<tr>
<td>New Terminal within screen</td>
<td><font face="courier new,courier,monospace" size="2">&#8220;ctrl+a c&#8221;</font> (created under the privs of the initial user, not the current one.)</td>
</tr>
<tr>
<td>Swap to a different session</td>
<td><font face="courier new,courier,monospace" size="2">&#8220;ctrl+a [0-9]&#8220;</font></td>
</tr>
<tr>
<td>Swap to previous session</td>
<td><font face="courier new,courier,monospace" size="2">&#8220;ctrl+a a&#8221;</font></td>
</tr>
<tr>
<td>Next session in sequence</td>
<td><font face="courier new,courier,monospace" size="2">&#8220;ctrl+a n&#8221;</font></td>
</tr>
<tr>
<td>Previous session in sequence</td>
<td><font face="courier new,courier,monospace" size="2">&#8220;ctrl+a p&#8221;</font></td>
</tr>
<tr>
<td>Enter Copy mode</td>
<td><font face="courier new,courier,monospace"><font size="2">&#8220;ctrl+a ["</font><font face="times new roman,times,serif" size="3"> Then move about and highlight with the cursor keys, and hit enter to copy to screen's clipboard</font></font></td>
</tr>
<tr>
<td>Paste Clipboard</td>
<td><font face="courier new,courier,monospace" size="2">"ctrl+a ]&#8220;</font></td>
</tr>
</tbody>
</table>
<p>Now if you have a screen session running under a screen (eg, ssh from within screen on host a to host b where you&#8217;re also running screen) and you want to perform a screen command on the remote screen you have to type ctrl+a ctrl+a <keys>. Thats an extra ctrl+a for every level of screen down you need to go.</keys></p>
<p>Thats the important commands to remember.</p>
<p>If you use <font face="courier new,courier,monospace" size="2">screen -RD</font> to attatch to screen, and someone else is already attatched, then their connection is killed. You can do wierd stuff like shared sessions, but then it gets a bit messy and I&#8217;m not going to cover it here.</p>
</td>
</tr>
</tbody>
</table>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="mark@arricc.net" /><input type="hidden" name="return" value="http://www.arricc.net/pp-thanks.php" /><input type="hidden" name="item_name" value="Buy Me a Beer for Screen" /><input type="hidden" name="currency_code" value="GBP" /><input type="hidden" name="amount" value="5" /><input type="image" src="http://www.arricc.net/wp-content/plugins/buy-me-beer/icon_beer.gif" align="left" alt="" title="" hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=mark@arricc.net&amp;currency_code=GBP&amp;amount=5&amp;return=http://www.arricc.net/pp-thanks.php&amp;item_name=Buy+Me+a+Beer+for+Screen" target="paypal">If you find this article useful, buy me a beer!</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.arricc.net/screen.php/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

