screen cheatsheet
I’ve been using the unix screen command a lot lately, and enough to want to learn more.
I used to just scroll through windows with CTRL-a n and CTRL-a p, but now I have a ton of windows in my screen session, so I want to be able to navigate easier.
- List to windows: CTRL-a w (you can also have a persistent display of windows, see http://haller.ws/logs/view.cgi/ScreenTerminal. Thanks Patrick!)
- Go to window 2: CTRL-a 2
- Set window title: CTRL-a A
According to the manpage, you can automatically set the title of a window, but I think it’s nice to do it interactively because the general task that will identify the window’s functionality might not easily be reflected in a path or command.
You can also use screen to copy/paste text between windows:
- Enter copy mode: CTRL-a [
- Start/End selecting text to copy: SPACE
- Paste text CTRL-a ]
October 24th, 2007 at 2:45 am
From window list command above, I’m not sure if you use the statusline to keep a visible list of shells?
more at http://haller.ws/logs/view.cgi/ScreenTerminal
March 13th, 2008 at 10:09 pm
Hi! I made a more extensive version of screen cheat sheet.
I posted it to my blog, catonmat — good coders code, great reuse:
Screen Terminal Emulator Cheat Sheet
I hope you find it useful.
PS. I also have several other cheat sheets on awk, ed, sed, perl and bash. Navigate to Projects -> Programming Cheat Sheets to find them!
Sincerely,
Peteris Krumins