User Tools

Site Tools


screen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

screen [2009/04/10 07:51]
k2patel
screen [2020/08/10 02:35]
Line 1: Line 1:
-====== Using Screen ====== 
  
-== allow people to attach to my screen == 
- 
-<code bash | ~/​.screenrc>​ 
-multiuser on 
-</​code>​ 
- 
-== allow the following people full control == 
- 
-<code bash> 
-addacl root,​aledesma,​mymanager,​mycoworker1,​mycoworker2 
-aclchg aledesma +rwx “#?” 
-</​code>​ 
- 
-== allow everyone readonly access == 
- 
-<code bash> 
-aclchg *,!aledesma -rwx “#?” 
-</​code>​ 
- 
-== setup 10,000 lines of available scrollback — copy/paste == 
- 
-<code bash> 
-defscrollback 10000 
-</​code>​ 
- 
-== fix scrollback in putty == 
- 
-<code bash> 
-termcapinfo xterm* ti@:te@ 
-</​code>​ 
- 
-=== Entering Scrollback Mode and Navigating === 
- 
- 
-To enter scrollback hit C-a [. A status line will indicate that you've entered copy mode. To exit scrollback mode, hit the escape button. 
- 
-Navigating in scrollback mode will be pretty familiar to VI users. Here are some of the most common navigation keys (taken from the screen manpage): 
- 
-<code text> 
-h -    Move the cursor left by one character 
-j -    Move the cursor down by one line 
-k -    Move the cursor up by one line 
-l -    Move the cursor right by one character 
-0 -    Move to the beginning of the current line 
-$ -    Move to the end of the current line. 
-G -    Moves to the specified line  
-       ​(defaults to the end of the buffer). 
-C-u -  Scrolls a half page up. 
-C-b -  Scrolls a full page up. 
-C-d -  Scrolls a half page down. 
-C-f -  Scrolls the full page down. 
-</​code>​ 
- 
-I often use the page up and page down commands to quickly scroll back through the window'​s history. 
- 
-In addition to traditional navigation, Screen allows you to search the scrollback buffer using the following commands: 
- 
-<code text> 
-/ -    Search forward 
-? -    Search backward 
-</​code>​ 
- 
-Search is a very useful feature. For example, you could run a script and search for keywords in the output (such as Error), without having to redirect the output. 
screen.txt · Last modified: 2020/08/10 02:35 (external edit)