<div dir="ltr">I 100% agree with Andrew on this. Being able to use a terminal multiplexer like this is a *very* handy skill to have in your back pocket. I've been using GNU Screen for ~10 years now, and am happy with it. I've used tmux and it seems to work well, but my old fingers are stuck in their ways, knowing the Screen shortcuts much better, so until I need a feature that screen isn't providing, I'll likely just keep using that.<div>
<br></div><div>Andrew's advice is sound, though: if you're just learning one now, start with tmux.</div><div><br></div><div>I do use screen for multiplexing, that's a given. Here's a quick list of *other* things I use screen for, which are just as valuable to me as multiplexing is:</div>
<div><br></div><div>- disconnect-resilient shells (if you're running in screen and your network connection dies, everything keeps running)</div><div>- terminal sharing (co-troubleshooting with a co-worker, training other devs, etc.)</div>
<div>- monitoring long-running processes (much easier than the nohup dance, and easier to jump into and out of)</div><div>- serial terminal for network equipment management</div><div><br></div><div>(tmux can handle all of these things as well)</div>
<div><br></div><div>-Erik</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 6, 2014 at 1:40 PM, Mike Miller <span dir="ltr"><<a href="mailto:mbmiller+l@gmail.com" target="_blank">mbmiller+l@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks, Andrew.  Now I want that book!<span class="HOEnZb"><font color="#888888"><br>
<br>
Mike</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Mon, 6 Jan 2014, Andrew Berg wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On <a href="tel:2014.01.06%2010" value="+12014010610" target="_blank">2014.01.06 10</a>:39, Mike Miller wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Does either of those keep the command histories for multiple login sessions stored in separate files?  My guess is "no," but that it still would help when a connection is lost.  I have been wanting for years to learn to use GNU Screen but I haven't gotten around to it.  Is there a good tutorial?<br>

<br>
If I weren't doing what I am doing, and the server crashed, I would lose all command histories.  This way I lose nothing.  I don't think screen would help unless it is continually storing its state and command history in a file.<br>

</blockquote>
<br>
tmux is far more convenient than what you're doing. Its main purpose is to keep several terminals open and available to you at the same time and to attach and detach at will without any adverse consequences. tmux won't separate your command histories across sessions (it will have separate histories in each pseudoterminal), but such a thing would have to be handled by your shell anyway since that is what is keeping history. Since you already have shell code written to do this, it should work with some minor changes.<br>

<br>
Also, don't use screen. It's old and buggier and has fewer features than tmux. Some people still use it because they've using it for years and it serves their needs, but you have no investment in it, so it will give you no advantage over tmux. There are plenty of tutorials out there to get you started with tmux, and there's even a book on it: <a href="http://pragprog.com/book/bhtmux/tmux" target="_blank">http://pragprog.com/book/<u></u>bhtmux/tmux</a> (it has a focus on development, but I've read some of it, and the basic and intermediate stuff is very well covered).<br>

</blockquote>
______________________________<u></u>_________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/<u></u>mailman/listinfo/tclug-list</a><br>
</div></div></blockquote></div><br></div>