screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). For computer monitors, see the tag [monitors].

learn more… | top users | synonyms (1)

73
votes
6answers
29k views

Keep SSH Sessions running after disconnection

I sometimes have long running processes that I want to kick off before going home, so I create a SSH session to the server to start the process, but then I want to close my laptop and go home and ...
10
votes
3answers
9k views

sending text input to a detached screen

I'm trying to run a minecraft server on my unRAID server. The server will run in the shell, and then sit there waiting for input. To stop it, I need to type 'stop' and press enter, and then it'll ...
11
votes
3answers
3k views

GNU Screen for X11 Forwarding

I'm using X11 forwarding over ssh to run Linux apps on my Windows box, and when the network drops the lose everything that was running. Is there anything similar to screen for X11?
9
votes
1answer
3k views

Sending input to a screen session from outside

My scenario is this: I have a screen session running in a remote location. Inside this screen is a consoled-based program. When run without screen, this program starts in the terminal and accepts ...
6
votes
2answers
2k views

Why is screen seemingly doing nothing with commands passed with -X?

I've been trying to set up an automated backup system for a minecraft server, and I'm having trouble with screen, specifically when using 'screen -r sessionname -X "/var/minecraft/somebatchfile"', ...
7
votes
2answers
2k views

Force title on GNU screen

By default, the title of a screen session is the name of the last command entered, which is fine for me, but in some cases I'd like to change it. I know the command Ctrl-A A, but it only changes the ...
11
votes
2answers
12k views

How can I switch between ttys without using screen?

So lets say you boot up your linux install all the way to the desktop. You start up a gnome-terminal/konsole/whatever so you have a tty to enter commands to. Now lets say I SSH into that same ...
6
votes
3answers
767 views

How to screen'ize already running session? [duplicate]

Possible Duplicate: How can I disown a running process and associate it to a new screen shell? It is a good practice to run long processes in screen session, to protect them from session ...
66
votes
6answers
68k views

How to split the terminal into more than one “view”?

From vi, if you issue the command :sp, the screen splits into two "views", allowing you to edit more than one file from the same terminal. Along those same lines, is there a way to have multiple ...
127
votes
10answers
25k views

tmux vs. GNU Screen

Browsing through questions I found about tmux (I normally used GNU Screen). My question is what are pros and cons of each of them. Especially I couldn't find much about tmux.
80
votes
5answers
22k views

Moving tmux window to pane

How do I move an existing window into a pane in another window in tmux when I have multiple windows, and vice versa? I'm coming from screen, where I can switch to the pane and then switch windows ...
23
votes
4answers
8k views

Is there an equivalent of GNU Screen's “log” command in tmux?

I make heavy use of screen's "log" command to log the output of a session to a file, when I am making changes in a given environment. I searched through tmux's man page, but couldn't find an ...
8
votes
4answers
1k views

Can I easily search my history across many screen windows?

My current screen session has 12 open windows on it. It's been running for weeks... I know I executed an ImageMagick convert command in one of these 12 screen windows sometime last week... is there ...
21
votes
3answers
6k views

Shell: how to go to the beginning of line when you are inside a screen?

I am inside a screen (screen -Ra). I have a long command, and I am at the end. Instead of keeping the left arrow, how can you go to the beginning of the line? CTRL-A works when I am in a normal ...
6
votes
2answers
2k views

GNU screen: print a detached session to stdout

I just want to have a quick overview of my detached GNU screen sessions. Is it possible to dump the current content to stdout ? Something like screen --print SESSION_NAME > file.txt
6
votes
1answer
2k views

Is there a way to make Screen scroll like a normal terminal?

I love screen, but it drives me nuts that I have to stop typing input, hit CTRL+A [, and then find what I need. Is there a way to make the scroll wheel function normally, rather than scrolling ...
3
votes
1answer
857 views

How to run streamripper and mplayer in a split-screen X terminal, via a single script

I want to run streamripper in its own X Terminal (window), then split the terminal horizontally, and then run mplayer in the lower half. This is simple enough to do manually, but getting a script to ...
1
vote
2answers
333 views

screenrc: find out the keys bound by bindkey

The bindkey keyword in .screenrc is preceded by some cryptic keys that correspond to some keybouard binding. How can I figure out what these are? Google and GNU Screen Documentation did not show the ...
1
vote
1answer
351 views

Tmux viewport caused by multiple concurrent sessions

When attaching to the same tmux sessions from multiple computers using ssh and tmux attach, my screen looks like: ------------------------- $> |........ |........ ...
24
votes
4answers
6k views

Can mouse wheel scrolling work in a /usr/bin/screen session?

Is there any way to use the mouse wheel to scroll through the output of a screen session? I can use the keypad scroll through previous output in screen after pressing ctrl+a [. Is it possible to do ...
21
votes
4answers
6k views

How can you change the GNU screen status line based on hostname?

I have a shared home directory that is automounted via NFS on all the UNIX servers I log in to. I would like to have a single .screenrc that (for example) puts the hostname in the hardstatus line in a ...
6
votes
5answers
2k views

How to effectively use screen and SSH?

I'd like to configure SSH and screen such that a login will always reattach to a screen session. Ideally, that session would not quit but detach when I press C-d. How can this be achieved? And what ...
17
votes
4answers
6k views

Save complete GNU screen session state

Is it possible to persist the "state" of a GNU screen window (or just a standard shell) so that I can reload everything after a reboot: The number of opened shells The name of each shell The current ...
7
votes
1answer
2k views

GNU screen: move between regions

I've started splitting window in GNU screen into different regions - rather than switching between windows. Anyway, having split a window into 4 regions (2x2) it takes 3 C-a <Tab> to return ...
6
votes
4answers
6k views

tabs when using 'screen'

I am using Ubuntu 10.04. After I installed screen: sudo apt-get install screen I made two ssh connections to two remote servers by doing the following things step by step (I do the following steps ...
7
votes
3answers
4k views

nohup vs. Screen

In the past, I've used nohup to run big background jobs, but I've noticed that a lot of people use Screen in this context. Does Screen provide some kind of functional advantage that I am unaware of, ...
5
votes
2answers
4k views

Connect to byobu screen session and execute command?

In a script I am building I'm experimenting with how to automate as much as possible. One of the more interesting challenges is to connect to a byobu screen session and execute a command. So I ...
4
votes
1answer
275 views

How to bind 'tab' and 'shift+tab' in gnu screen?

As the title says, how do I bind the keys 'tab' and 'shift+tab' in screen? My problem is that I don't know what to pass to the screen command "bind" to designate these keystrokes. BTW, I'm aware of ...
4
votes
1answer
824 views

GNU Screen makes Vim ESC key slow

Screen makes my ESC key wait for more commands I beleive, and if it does not get those commands, it sends it to my terminal Session (which I am running VIM in). ESC is used alot in VIM and currently ...
3
votes
4answers
406 views

Keeping a process running on server even SSH is closed [duplicate]

I am running long program on server, which is basically Jar file of java program. I want to keep this program running even if SSH terminal is closed, how I can keep this program running on server?
3
votes
2answers
156 views

screenrc subshell for every window

.screenrc: shell -${SHELL} caption always "%n(%t) %= %{b}@%H[%l] : %{r}%c:%s" termcapinfo xterm ti@:te@ termcap xterm 'AF=\E[3%dm:AB=\E[4%dm' terminfo xterm 'AF=\E[3%p1%dm:AB=\E[4%p1%dm' ...
3
votes
1answer
925 views

Trouble sending command to detached Screen session

I would like to send a command to a screen session and if possible get the output. My attempt at sending a command to a screen session is as I found on this website and lots of others, but it doesn't ...
3
votes
3answers
178 views

Replacement shortcuts for `screen` [closed]

Screen uses the shortcut CtrlA to activate. I find that this interferes with the Bash command for jumping to the start of the line, and the VIM command for incrementing an integer. Certainly I could ...
2
votes
3answers
35 views

Setting regions in a Screen session

I'm trying to get a 'Screen' with 4 tabs to split the screen into 4 regions. I'm running 4 instances of bfgminer. One instance per USB Hardware miner. Unfortunately it has to be this way. So I'm ...
2
votes
2answers
811 views

search text on the terminal output

I am running an application with command $ grails run-app which prints log in terminal like below. What I want is search a particular text (say user authorities) in this log so that I can verify ...
2
votes
2answers
778 views

Find out screen id

I want to start a program with SSH using PHP, which works fine, but now I want to kill the screen with PHP, but the only thing I know is the name of the screen. How do I find out the screen ID ...
2
votes
1answer
4k views

Linux Mint Change Screen Resolution

I installed Linux mint 10.I have nvidia geforce 9500 GT.After installing nvidia-current package,my screen resolution become 800*600.There is no 1024*768 in Monitors menu. Running inxi -Gx shows, ...