Linked by Thom Holwerda on Wed 11th Feb 2009 22:32 UTC
General Unix If you've spent hours on a task, such as debugging an application, it can be maddening to lose your work in an instant. This article shows you how to keep your shell and your work alive, even across multiple sessions and dropped connections using GNU Screen. Screen is a remarkable tool that you will quickly find invaluable in any work you perform on the command line. In fact, use it once, and you will wonder how you ever lived without it.
Order by: Score:
Don't forget the nethack option
by Bill Shooter of Bul on Wed 11th Feb 2009 23:04 UTC
Bill Shooter of Bul
Member since:
2006-07-14

My favorite option From the man page


nethack on|off

Changes the kind of error messages used by screen. When you are familiar with the game "nethack", you may enjoy the nethack-style
messages which will often blur the facts a little, but are much funnier to read. Anyway, standard messages often tend to be unclear as
well.
This option is only available if screen was compiled with the NETHACK flag defined. The default setting is then determined by the
presence of the environment variable $NETHACKOPTIONS.

Reply Score: 2

RE: Don't forget the nethack option
by theosib on Thu 12th Feb 2009 00:31 UTC in reply to "Don't forget the nethack option"
theosib Member since:
2006-03-02

Can you give an example?

Reply Score: 1

Bill Shooter of Bul Member since:
2006-07-14

examples:

Regular message => nethack message

"Copy mode aborted"=>"You escaped the dungeon."

"Filter removed."=>"You have a sad feeling for a moment..."

"Window %d (%s) killed."=>"You destroy poor window %d (%s)."

"Detach aborted."=>"The blast of disintegration whizzes by you!"

"Aborted because of window size change."=>"KAABLAMM!!! You triggered a land mine!"

"There are several screens on:"=>
"Prove thyself worthy or perish:"

Reply Score: 1

backdoc Member since:
2006-01-14

funny

Reply Score: 2

Agreed
by darknexus on Thu 12th Feb 2009 01:13 UTC
darknexus
Member since:
2008-07-15

I agree with this article, screen is a godsend especially when dealing with remote systems. The copy/paste feature alone is worth it on local consoles as well, though they didn't cover that in the article. It can also be used very effectively as a serial terminal, if you ever need a quick and dirty serial connection to a headless box.

Reply Score: 3

Comment by BSDfan
by BSDfan on Thu 12th Feb 2009 01:24 UTC
BSDfan
Member since:
2007-03-14
RE: Comment by BSDfan
by skypher on Thu 12th Feb 2009 09:16 UTC in reply to "Comment by BSDfan"
skypher Member since:
2009-02-12

Yeah, tmux is a cool alternative since 0.7.

Reply Score: 2

RE: Comment by BSDfan
by apotheon on Thu 12th Feb 2009 20:57 UTC in reply to "Comment by BSDfan"
apotheon Member since:
2008-02-05

Hell yes. I much prefer tmux over GNU Screen -- for its licensing, its interface, its client/server architecture, its stability, and its lightweight design. GNU Screen has a few features that tmux lacks, but those features may as well not exist, considering the way I use a terminal multiplexer.

http://www.wikivs.com/wiki/Screen_vs_tmux

Reply Score: 1

RE: Comment by BSDfan
by phoenix on Thu 12th Feb 2009 22:03 UTC in reply to "Comment by BSDfan"
phoenix Member since:
2005-07-11



The nicest thing I like about tmux compared to screen, is that out-of-the-box, the keybindings don't mess up CLI navigation. ie CTRL+A still means "beginning of line" and not "enter command mode". Once less thing to configure on all the servers.

Now, if only someone would port it to Debian. ;)

Reply Score: 3

RE[2]: Comment by BSDfan
by BSDfan on Fri 13th Feb 2009 03:38 UTC in reply to "RE: Comment by BSDfan"
BSDfan Member since:
2007-03-14

Compile it yourself? it should work on Linux.. BSD.. any Unix worth using.

For debian specifically, google relieved this:
http://mentors.debian.net/debian/pool/main/t/tmux

It's outdated though, just compile it yourself.

Reply Score: 3

RE: Comment by BSDfan
by backdoc on Mon 16th Feb 2009 23:11 UTC in reply to "Comment by BSDfan"
backdoc Member since:
2006-01-14

macbook-pro:~ backdoc$ tmux
-bash: tmux: command not found

Reply Score: 2

<3 screen
by helf on Thu 12th Feb 2009 01:25 UTC
helf
Member since:
2005-07-06

Screen is one of my all time favorite *nix programs. ever.

I love it. It is unbelievably useful, specially when having to deal with remote systems.

Reply Score: 2

Comment by Calipso
by Calipso on Thu 12th Feb 2009 13:22 UTC
Calipso
Member since:
2007-03-13

screen is an awesome program. Use it on a daily basis and work would be a lot more messy if I had to open separate terminals instead of just running screen.

Reply Score: 1

Awesome
by Dr-ROX on Thu 12th Feb 2009 17:09 UTC
Dr-ROX
Member since:
2006-01-03

I always wanted something like this, once tried screen, but had to little patience to read the manual. So I got stuck. This article revived that idea and now I'm screen's fan. Especially split window mode and copy/paste.

Reply Score: 1

RE: Awesome
by backdoc on Mon 16th Feb 2009 23:23 UTC in reply to "Awesome "
backdoc Member since:
2006-01-14

Pick 3 or 4 things to use. It can be overwhelming to try to learn everything. Here's my favorites:

While in screen:
Ctrl+c (create new session)
Ctrl+A (rename session)
Ctrl+" (show list of current sessions)
Ctrl+a,Ctrl+a (switch between current session and last one)

From the shell:
screen -ls (show current screen processes)
screen -dr <process> (detach then reattach to "process")

If you just get used to using these, they will pay dividends. I'll bet that there are more that I would love, if I knew them. But, I just stick with a few favs and they work for me. If you use the command line (which you should), you'll be amazed how these few commands will increase your productivity and satisfaction.

Good luck.

Reply Score: 2

High Performance Computing
by ShadesFox on Fri 13th Feb 2009 07:53 UTC
ShadesFox
Member since:
2006-10-01

It is a lovely program to use, especially if you run a big job on a cluster. I was talking to a geologist about best practices running programs on a Linux cluster and when I told him about screen and how it works he immediately got on the phone and was telling his friend about it.

Reply Score: 1