<?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>Slashzerø &#187; commands</title>
	<atom:link href="http://www.slashzero.com/tag/commands/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.slashzero.com</link>
	<description>Random and Useless Thoughts on Everything</description>
	<lastBuildDate>Wed, 14 Dec 2011 17:58:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Linux commands I can&#8217;t live without: screen</title>
		<link>http://www.slashzero.com/2008/08/linux-command-i-cant-live-without-screen/</link>
		<comments>http://www.slashzero.com/2008/08/linux-command-i-cant-live-without-screen/#comments</comments>
		<pubDate>Sat, 16 Aug 2008 17:48:23 +0000</pubDate>
		<dc:creator>abx21</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[console server]]></category>

		<guid isPermaLink="false">http://www.slashzero.com/?p=87</guid>
		<description><![CDATA[I don&#8217;t immagine that Screen needs a big introduction.  For those that don&#8217;t know, screen is a window-manager.  One might ask I use XTerm or Konsole or Terminal in gnome, what do I use this for???  Well one of the big features of screen is that you can detach you session from you current console, [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t immagine that <a href=http://www.gnu.org/software/screen/> Screen </a> needs a big introduction.  For those that don&#8217;t know, screen is a window-manager.  One might ask I use XTerm or Konsole or Terminal in gnome, what do I use this for???  Well one of the big features of screen is that you can detach you session from you current console, go to a different computer, and reconnect to the same screen session.   You can start a command process at work, drive home, and reconnect to the still running window.</p>
<p>To start a new screen session just type &#8220;screen&#8221;.  You will see a welcome screen, just start typing away as if you are in a regular terminal session.  Need a new window? &#8220;CTRL-A c&#8221; will create one.  &#8220;CTRL-A p&#8221; goes to your previous screen, &#8220;CTRL-A n&#8221; goes to your next screen.  When you get to the last screen it just goest back to the first one.</p>
<p>So now you are ready to detach, &#8220;CTRL-d&#8221; detaches.  When you want to reconnect, I usually do a &#8220;screen -dr&#8221;, the d will detach the screen session if I had forgotten to before exiting then connect.</p>
<p>One feature I use a lot, especially when working with network gear, is the screenloging.  I connect to my router, type &#8220;CTRL-A H&#8221; to create a logfile, anything on the screen after that will get logged to the screenlog file.  Then if I do a &#8220;show run&#8221; my router config is saved incase I mess things up.</p>
<p>One final usage of screen that I empoy is as a serial interface, I connect my routers via serial to my linux laptop, then fire up screen like this &#8220;screen 9600 /dev/ttyS0&#8243; and voila.  Buy a bunch of usb serial dongles and build your own Serial Console server this way.  Turn on screenlogging and you can capture router error messages ghetto style.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.slashzero.com%2F2008%2F08%2Flinux-command-i-cant-live-without-screen%2F&amp;title=Linux%20commands%20I%20can%26%238217%3Bt%20live%20without%3A%20screen" id="wpa2a_2"><img src="http://www.slashzero.com/wp-content/plugins/add-to-any/share_save_120_16.gif" width="120" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.slashzero.com/2008/08/linux-command-i-cant-live-without-screen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

