Since I use the *nix command screen all day, and I couldn't find anyone starting this question, I figured it should be started. You know the drill: community wiki, one answer per features so we all can vote.
|
|
|||||
|
locked by voretaq7♦ Nov 8 '12 at 17:32
This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: FAQ.
|
I love using it for connecting to serial consoles, i.e.
This command simply opens up a connection to serial port 0 (ttyS0) with a baud speed of 19200 |
|||||||||
|
|
The best feature of It's a configuration manager with very nice defaults, tons of status notifications and useful keyboard shortcuts (i.e. f2 for new screen, f3-f4 for prev/next etc.) I really don't go anywhere without it anymore :) |
||||
|
|
|
From KTamas's amswer: More than one person can use the same screen, i.e. if a friend of yours |
|||||
|
|
Not exactly a "hidden feature"; but a properly setup .screenrc file can make a world of difference. One of the better examples out there can be found by googling screenrc and 'brad sims' - he has an excellent file to tinker with. that said, my favourite setting would be bindkey:
|
|||||||||
|
|
I can't remember who I stole this from (someone on dotfile.org). I've modified it slightly for ssh:
Then I set the following bash aliases:
It opens a new screen for the above aliases and iff using ssh, it renames the screen title with the ssh hostname. Cheers z0mbix |
|||||
|
|
One thing I find useful is that screen can emulate a larger width than your terminal. I find this useful if I'm using Ctrl-A: I can set |
|||||
|
|
The ability to change the control key with -ethat when starting screen. I use it so I can nest screen sessions inside each other. Example: "screen -e ^w^x" makes the control key ctr-w. |
||||
|
|
|
One nice feature: you can use
The key is the %1` bit, which refers to the output of backtick job 1. (I use |
||||
|
|
|
Not a "hidden" feature, but the ability to share a screen session with another active user is very useful. There are complicated ways to set up screen sharing, including access control permissions and user name management. What I most often do with coworkers is much more quick & dirty:
This doesn't require any advance configuration or password sharing. |
||||
|
|
|
A little cheat sheet I have printed out for myself; (Note: Everything is preceeded by Ctrl-A) A: rename a window ": show a list of windows d: detatch session And None of these are really hidden features, but these are the features I find to be the most useful. |
||||
|
|
|
It's a core feature, but of course the best is Ctrl-A: to talk directly to screen. |
||||
|
|