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)

2
votes
2answers
1k views

How can I keep processes running on a remote server even after turning off the terminal machine?

..and then still be able to return to the same session/screen after restarting the terminal machine. I've tried screen but once I restarted my computer screen -d showed no sessions. Nohup seems to be ...
1
vote
1answer
365 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: ------------------------- $> |........ |........ ...
17
votes
3answers
1k views

Is it secure to leave a root shell running in detached screen session?

I'm curious about the security of leaving a root shell running inside a detached screen session. I typically never do this. Aside from the potential of my non-root user account being compromised ...
4
votes
1answer
845 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 ...
1
vote
1answer
315 views

Ctrl + Right and Right send same Sequence in Putty > Screen > Vim

I'm using putty > screen > vim, and screen is sending the same sequence for Ctrl+Right and Right in application mode for vim. There is an option to make putty send the cursor mode sequences ...
8
votes
1answer
1k views

screen + vim — Any way to automatically set screen window name to open vim filename?

I have a pretty nice screen rc file that shows me the open screen windows almost like tabs at the bottom of the terminal. Currently the windows are named according to my prompt which is not so useful. ...
71
votes
6answers
75k 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 ...
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 ...
3
votes
1answer
446 views

X Window opened from screen

Bit of an oddish one, if I've opened an X window over SSH in a screen session will it reopen when screen is reattached? I've been able to detach and the process stays running fine, with the X window ...
6
votes
2answers
1k views

Fixing CTRL-* in vim under GNU screen

When running vim under GNU screen, I'm finding that combinations of CTRL with the arrow and Pg* keys don't work as expected. I'm using the Ubuntu 10.10 vim-gnome package. On a different machine, ...
5
votes
3answers
1k views

Scrollability of text when using tmux?

Scrollability of text in some terminals: | tty | xterm | urxvt | guake | terminator screen | Y | Y | Y | Y | Y tmux | N | N | Y | N | N I notice in this ...
5
votes
1answer
3k views

Byobu/screen constantly freezes in Putty

For a while now I've been using Byobu to manage screen sessions for me. However I've run into a strange issue: The session keeps locking. By locking I mean that I can't type anything, and only if I ...
3
votes
1answer
408 views

Why is GNU screen / byobu leaving garbage text in the shell during a reverse search?

I recently starting using GNU screen via Byobu but I think the problem is related to screen. I first SSH into a server and then do a reverse search to run a commonly run command (dump a the ...
7
votes
1answer
2k views

Nested ssh session inside screen has no color

I am attempting to keep a nested ssh session inside of a byobu/screen window, which I also connect to over SSH with Putty on Windows. However the nested SSH session has no color. Here's what I'm ...
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 ...
16
votes
1answer
5k views

GNU Screen: new window name change

I can change the name of a window with Ctrl-a Shift-a. Instead of editing several window names by hand, is there a way to have them automatically named after the current directory?
4
votes
1answer
1k views

Running several commands in a screen-split

I have a few long running commands that I would like to run together in the same screen (same tab in the terminal app). My current setup is like this: tmux new-session -d 'cmd1' tmux split-window ...
8
votes
2answers
5k views

How do I bind to Shift+{Left,Right} in tmux?

I'm looking at tmux from screen, and have hit a bump while configuring the (highly configurable!) tmux key bindings. Problem is, in my .screenrc I have bindkey ^[[d prev bindkey ^[[c next bindkey ...
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"', ...
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 ...
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 ...
10
votes
1answer
4k 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
1answer
360 views

Screen, remote login failure, and disappearing text

When in a screen session via ssh, if I attempt to connect to another host via scp or ssh and the auth fails, any subsequent text I type in the terminal will not be displayed, however it is being ...
2
votes
1answer
223 views

clear(1) after detach in GNU screen

I run irssi in screen and I want screen to automatically blank the terminal (scrollback) after detach. I found out that screen has a command called "blanker" that can clear the screen, but I don't ...
11
votes
8answers
1k views

Is screen useful?

When I need to open different processes or terminals that I need to check, I just open a new tab in my terminal and use different workspaces in my machine to keep everything organized. I do some web ...
3
votes
2answers
701 views

How to run a command inside screen such that you can get back to the command's parent shell?

What's the best way to run a command inside a screen session such that its parent shell can be accessed? I want to be able to restart it from within the same screen session. The best I've managed to ...
17
votes
4answers
7k 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 ...
3
votes
1answer
639 views

Ubuntu: How can I disable boot and logout screen

I want to be able to see all stuff from the boot process, just like in Debian. I instaled startupmanager but It only change boot screen to more ugly. I search google and find that you must remove ...
5
votes
1answer
1k views

GNU screen - Restore a session with splitted screen

When I restore a splitted session of screen, I've got only one print session and have to reconfigure the number of display session. Is there another way to have the original screen configuration?
11
votes
2answers
1k views

Clearing GNU Screen after full-screen application

When working at a normal xterm (not sure about a "real" terminal), when a full-screen program such as man or vim is closed, it disappears, leaving your screen so you can see your prompt, and previous ...
6
votes
2answers
3k views

How to make screen -R attach to the youngest detached session?

I'm using screen on debian lenny, and I would like to use the -R option. From man screen: -R attempts to resume the youngest (in terms of creation time) detached screen session it ...
127
votes
10answers
26k 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.
75
votes
6answers
34k 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 ...
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 ...
48
votes
2answers
10k views

How do you detach the 2nd screen from within another screen?

I've accidentally attached to a 2nd GNU screen session from within an existing screen session and cannot detach or issue commands to the inner screen. I remember figuring out how to do that before but ...