use screen in Ubuntu 12.04

nice tool for those who use the terminal for much of their work. Installation is simple:

1
sudo apt-get install screen

Some useful (basic) commands are:

1
2
3
4
screen -S <sessionname> # create session with name 'sessionname'
screen -ls              # show current screen sessions
CTRL-a d                # detach from screen session
screen -r <sessionname> # re-attach to 'sessionname'

Once in an attached screen window, useful commands are:

1
2
3
4
5
CTRL-a c                # create a new window/terminal
CTRL-a A                # name the window/terminal
CTRL-a "                # list all windows and select to switch
CTRL-a n                # cycle to next window/terminal
exit                    # exit from the current window/terminal