CTO/CIO. Ruby. Rails.
just some more awesome
First, here is a good tutorial for using Screen: http://www.linuxjournal.com/article/6340
Screen is great for keeping long running processes running. This is especially useful if you are ssh'ed into a server. But, I know people who live in Screen even locally. Not sure what the benefit is of that. But, to each his own.
Some Screen Commands
Whenever you see something like "ctrl+a, c", that means "ctrl+a" then press "c".
From the command line:
From within a Screen session:
Fix the delete key issueOn my mac, the "delete" key does not delete when in screen. You need to do this to fix it. On the system from which the screen command will be run, add the following line to the ~/.bashrc file.
alias screen='TERM=screen screen'
Make sure to restart the user's shell session.
.screenrc fileCreate one of these in your ~ directory. Anyone have a really sweet one? Please share.I don't have a lot of Screen customizations. But, the one I must have is this one. See the image below.
Here is what you need in order to get that:
hardstatus alwayslastline "%{= wk}%H | %-w%{+u r}%n %t%{= wk}%+w%{= wk}"
