- [Show page]
- [Old revisions]
- [[unknown link type]]
- []
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
linux:screen [2009/02/01 23:30] admin |
linux:screen [2016/09/06 17:35] tomsa |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Try this quick start: | ||
+ | $ screen | ||
+ | <in the screen> $ ls -al / | ||
+ | <in the screen> Ctrl+A d | ||
+ | $ screen -r | ||
+ | <see :), you're back to you screen> | ||
+ | Put this into you ''~/.screenrc'' to get fancy colours. At least you'll see what is happening. | ||
+ | hardstatus alwayslastline | ||
+ | hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]' | ||
+ | | ||
+ | # Default screens | ||
+ | screen -t shell1 0 | ||
+ | screen -t shell2 1 | ||
+ | screen -t server 2 ssh me@myserver | ||
+ | |||
+ | {{:linux:screen_fancy.png|}} | ||
+ | |||
+ | * [[http://magazine.redhat.com/2007/09/27/a-guide-to-gnu-screen/]] | ||
+ | * [[http://www.kuro5hin.org/story/2004/3/9/16838/14935]] | ||
+ | * [[http://magazine.redhat.com/2007/09/27/a-guide-to-gnu-screen/]] | ||
+ | |||
+ | |||
+ | ====Move process to screen==== | ||
+ | * Suspend the process with Ctrl+Z. | ||
+ | * Resume the process in the background with bg. | ||
+ | * Disown the process with disown %1. | ||
+ | * Launch a screen session with screen. | ||
+ | * Find the PID of the process using pgrep. | ||
+ | * Use reptyr to take over the process reptyr. |
linux/screen.txt · Last modified: 2016/09/06 17:35 by tomsa