| News | Features | Interviews |
| Blog | Contact | Editorials |
| Linux Screen tutorial and how-to |
| By Thom Holwerda, submitted by MOS6510 on 2012-08-30 23:11:19 |
| "You are logged into your remote server via SSH and happily plucking along at your keyboard and then it happens. Suddenly, the characters stop moving and then you get the dreaded 'Connection Closed' message. You have just lost your session. You were halfway through some task and now you have to start over. Ugh. Well you can prevent this from happening by using screen. The Linux screen tool can not only save you from disconnection disasters, but it also can increase your productivity by using multiple windows within one SSH session. I use this tool all of the time in our server management work." An older tutorial, and even though I have little to no knowledge about screen, I know one thing: lots of people swear by it. |
| Comment by Sodki |
| By Sodki on 2012-08-30 23:06:24 |
| I swear by it. It's a _really_ powerful tool and easy to use if you just want basic functionality. |
| Personally, I like tmux better. |
| By beowuff on 2012-08-30 23:17:18 |
| But they are both awesome tools. I always recommend them to people new to cli. |
| tmux |
| By Soulbender on 2012-08-30 23:19:08 |
| If you like screen you might want to have a look at tmux. It's like screen only with a modern design and actively maintained. I find it to work much better in general. |
| Screen Mandatory Rails Tool |
| By jburnett on 2012-08-30 23:25:33 |
| As a rails developer screen is a mandatory part of my toolkit. My only complaint is that I cannot seem to name the screens, so I have to remember which number is the server, console, vi session, etc... Does tmux have naming? |
| RE: Screen Mandatory Rails Tool |
| By beowuff on 2012-08-30 23:33:52 |
|
Yes! From http://www.openbsd.org/cgi-bin/m... , Rename the current window. |
| RE: Screen Mandatory Rails Tool |
| By Soulbender on 2012-08-30 23:52:56 |
|
> Does tmux have naming? Yes, it does but tmux also shows the current command next to each window number in the status bar. |
| This is the kind of thing that pisses RMS off |
| By JoeBuck on 2012-08-31 00:21:56 |
|
Yes, RMS has tired everyone out by arguing that people could say GNU/Linux, but come on. It's not the Linux screen tool. It is GNU Screen, originally done on the BSD platform and integrated with the GNU project in 1990, before Linus released his first kernel. People have been using it for more than two decades on all kinds of Unix flavors, as well as on Windows and OSX. Linux is great, but it's just a kernel, and that kernel was designed originally to run all the cool GNU and BSD code that already existed. |
| RE: Screen Mandatory Rails Tool |
| By JoeBuck on 2012-08-31 00:24:56 |
| screen can already do what you want. Enter C-a A to give the current window a name. Enter C-a ' (quote) to prompt for a window name to switch to. Enter C-a " (double quote) to list all the screen names/numbers. |
| RE: Personally, I like tmux better. |
| By cb88 on 2012-08-31 01:02:20 |
|
tmux really is better... I've used it extensively to keep the sessions on my sparcstation open even if the ssh connection craps out. It would be nice if it were a bit more integrated into ssh so that it could resume connections automatic ie when on a cellular or intermittent wifi connection. The keyboard usage on tmux seems a bit more polished to me I suppose thats the main thing. Edited 2012-08-31 01:03 UTC |
| Used it all the time for admin tasks |
| By benali72 on 2012-08-31 01:41:04 |
| Excellent tool. As a sysadm, I used to use this all the time for remote connections, esp. for night work. These days connection reliability is so improved it's not the issue it once was. |
| News | Features | Interviews |
| Blog | Contact | Editorials |