AppInfo: screen
From LinodeWiki
Contents |
[edit] General Information
screen is a text-based program. Running programs inside screen allows (among other things) you to get disconnected or log out without stopping the program(s) running inside screen. It also allows you to run several virtual terminals within it and switch between them (or even display some simultaniously)
Project Page
Mailing List Archive
Man Page
FAQ
This wiki entry is doing much the same as I'm doing here.
[edit] Links
In no particular order (articles, simple tutorials, etc.):
- Kuro5hin Article (make sure to read the comments for some tips-n-tricks)
- Article (based on the Kuro5hin Article)
- Sun Article
- Wikipedia Entry
- DotFiles.com (screenrc) (via Google)
- Gentoo Wiki
[edit] Interesting tidbits
- Kuro5hin Article Comment Ctrl-Left and Ctrl-Right switches windows
- Kuro5hin Article Comment Bind keys to select 10-19
- screenrc thread
- term window title problems with hardstatus
- Scrollback to file
[edit] My .screenrc
# See /etc/screenrc for more examples # No annoying audible bell, using "visual bell" vbell on
# Automatically detach on hangup. autodetach on
# Don't display the copyright page startup_message off
# Change default scrollback value for new windows defscrollback 1000
# If no title is set then use this shelltitle '$ |screen'
hardstatus alwayslastline
# Use %1` #backtick 1 1200 1200 whoami
# use %2` backtick 2 1 1 /home/harleypig/iostatus
hardstatus string "%c:%s %D %m-%d-%Y | %l | io %2` | %n %t %W"
[edit] iostatus shell script
#!/bin/bash
cat /proc/io_status | perl -ne '($r,$t)=$_=~/rate=(\d+).*?tokens=(\d+)/;$_=sprintf"rate: %06u tokens: %6u",$r,$t;print'
