GNU Screen is a command line utility which allows the user to create multiple shell sessions on one connection. These sessions are decoupled from the primary connection and so maintain state for the user, even if the connection is dropped.

learn more… | top users | synonyms

2
votes
3answers
735 views

How to persist `gnu screen` layout after restart

I am using the screen split in 3 with vim on the left, and two other screens split horizontally on the right. I know that when detaching from a screen, I can save the layout with :layout save ...
0
votes
3answers
2k views

TMUX key bindings

I have a problem with TMUX key bindings. When I'm working on a terminal pane, if I press ctrl+pgup, it should scroll the screen one page up, as a normal terminal, but it doesn't. Also, while using ...
0
votes
2answers
21 views

Can't attach to GNU Screen - not showing in list but still running

I have screen running but it doesn't show in a list and it won't allow me to attach it. $ screen -ls (08-21 12:38:23) No Sockets found in ...
0
votes
0answers
8 views

GNU-Screen super-key as escape

The super-key (windows key, et al) isn't representable using ascii or terminal escape sequences, so I doubt a tty-oriented utility like screen would support it, but does it? Can I use the super-key ...
38
votes
4answers
26k views

Byobu vs. GNU Screen vs. tmux — usefulness and transferability of skills [closed]

So far I have used Konsole to manage multiple shell sessions but I haven't tried Byobu, GNU Screen, and tmux, which offer better support for multiple shells. They all share one main feature, which is ...
4
votes
2answers
1k views

how to paste from byobu's screen buffer (ubuntu 12.04 64bit)

I'm running byobu in gnome-terminal, under ubuntu 12.04 64bit. and trying to copy a screen buffer. i.e. by hitting F7, byobu entering "copy mode", then mark screen text by space key. the question ...
19
votes
9answers
14k views

GNU screen - Unable to reattach to screen after lost connection

I was using irssi in screen but lost connection. After I ssh'd back in to the server, I can no longer attach to that screen. screen -ls shows that the screen is already attached. I tried screen -D to ...
15
votes
2answers
4k views

how to include screen's session name in hardstatus?

I use different screen sessions for different projects. Starting screen like screen -S project1. Now, I'd like to mention 'project1' in hardstatus line. Session name can be obtained from environment ...
3
votes
3answers
791 views

How do I display the current “session” name or “sockname” of a screen session in the status bar?

I run multiple screen sessions each created with 'screen -S name' and I would like to be able to display in the status bar the name I used to create the current screen session. However, I cannot ...
0
votes
1answer
23 views

No notifications in irssi for new private messages

My problem is that I get no notifications in irssi when receiving a new message: whether that be a private message, or just a message from a chan which isn't my current window. I use two different ...
0
votes
1answer
18 views

Change to Virtual Console 2-4 on target system via PuTTY and screen

I am trying to figure out how to change to Virtual Consoles 2-4 on a target system using PuTTY and screen. I have read the screen man pages and the replies here, but I still can't figure it out. ...
74
votes
8answers
40k views

Reload a Linux user's group assignments without logging out

When assigning a user's secondary group list using: # usermod -G <grouplist> <user> is it possible to force this group assignment to take effect without logging out all running ...
0
votes
2answers
29 views

How do I set key bindings for ctrl page up and ctrl page down in gnu screen?

So ctrl page up and down are all the rage nowadays, and I'd like to be able to C-p and C-n in gnu screen when I hit ctrl-pgup and down. I've tried and tried but the documentation is a little thin. Any ...
0
votes
1answer
22 views

How do I view the tab completion function for a command in bash?

I ultimately want to alias screen -r. I mostly want to do this because that command has an awesome tab completion feature that shows me the current GNU screen sessions. I want that power with the ...
0
votes
1answer
14 views

How to test if screen is started, then execute a command in screen and detach it?

screen -list There are screens on: 4278.chat (07/16/15 14:26:47) (Detached) 15127.notifier (07/16/15 13:27:57) (Detached) My goal is to : If chat screen is not ...
0
votes
1answer
23 views

how to resume a screen session?

When I log to my SSH, I have 2 screen sessions: screen -list There are screens on: 4278.chat (07/16/15 14:26:47) (Attached) 15127.notifier (07/16/15 13:27:57) ...
2
votes
2answers
53 views

Is it possible to show the current file I have open in vim in my screen tabs?

Was wondering if it'd be possible to somehow show the current file I'm editing in the tabs of my screen Because it'd be way easier to know what I'm switching between.
3
votes
0answers
17 views

GNU screen is slow exiting

I've set up my .bashrc to automatically screen -DRA (even though it's a local session). screen works fine, except that if I run exit from the last window or otherwise close it from the client itself, ...
0
votes
2answers
48 views

'screen.linux': unknown terminal type

When I run clear I get: 'screen.linux': unknown terminal type I get this error message when, on a Debian 7 machine running the OpenVZ kernel, from within a screen session, I vzctl enter into a ...
-2
votes
1answer
45 views

Alternatives to byobu as a tmux distribution?

Are there good alternatives for byobu as a tmux distribution?. Minimal, stable and that just works? or most tmux users just learn tmux specifics and configure it all by themselves?
0
votes
0answers
10 views

How to list screen sessions with the currently running commands?

screen -list list the current sessions identified by the pid.tty.host tuple. Is there a way to list those tuples along with the commands each screen session is currently running? I've checked the ...
44
votes
15answers
29k views

What's the best prefix/escape sequence for screen or tmux? [closed]

Screen goes with Ctrl+A.  tmux, as developed within screen, uses Ctrl+B.  Both are also keystrokes in other editors, shells, etc.  What do you suggest? which one conflicts least with other programs?
0
votes
0answers
28 views

Do GNU Screen windows know their name?

I'm trying to write a custom GNU screen key binding which dumps each window's name and environment to file. This would allow me to save/recover a screen session when my server needs rebooting. I ...
0
votes
0answers
50 views

Scrolling with trackpad/mouse in screen on OS X Terminal

I use screen command on Terminal on OS X. When I want to scroll up I change the mode to Copy Mode by pressing Ctrl A Esc. Then I use my trackpad to scroll up/down. It works. However, sometimes ...
5
votes
4answers
4k views

automatically start screen upon ssh login

I have been reading about how to automatically start a screen when I ssh to a remote server. I would like a simple one-liner to add to my .bash_profile to start screen when I ssh in, and NOT exit my ...
4
votes
4answers
12k views

How can I launch multiple screen sessions from a single bash script?

I've written a script (that doesn't work) that looks something like this: #!/bin/sh screen -dmS "somename" somecommand for i in {0..5}; do screen -dmS "name$i" anothercommand $i done For some ...
25
votes
6answers
7k views

How to keep windows split after detaching/reattaching GNU screen

I use screen in a Ubuntu server. I have my screen splited in four regions each showing a different window. The problem is when i detach (or maybe reattach) a get the four windows but only one region ...
1
vote
1answer
150 views

Starting script in screen with cron

I apologise if this has been asked before but I am not sure how to question a search query for this. I am extremely new to linux and I have been learning as I go to solve issues. I am trying to set ...
1
vote
1answer
31 views

Follow current window in screen -x

Using screen -x (after connecting over ssh) from a second computer is a great way to follow what someone is doing in a terminal. However, if the first person changes the screen window (C-a p or C-a ...
0
votes
1answer
76 views

Resize terminal Emacs window to fit when resuming a Screen session from larger display in Ubuntu

Whenever I start a GNU screen session running GNU emacs (nw, so in terminal) on my desktop with a large monitor, then resume it on my laptop, emacs still thinks it's on a large monitor. This means as ...
4
votes
2answers
2k views

How to make IRSSI running under screen in a remote system to beep on my local pc for new messages?

I have an irssi running forever under a "screen" in a remote linux server system. I have fedora 16 in my laptop and ssh into the server and resume my irssi screen when I come to work. But I miss a ...
0
votes
1answer
47 views

Running Cygwin Screen as a standalone program?

Would it be possible to separate Screen from Cygwin, and run it without running Cygwin first? If not, are there any alternatives to screen on Windows?
1
vote
1answer
52 views

VIM + screen on remote (ssh) linux machine

The problem happens with my text in vim when I'm working inside of screen this is my .screenrc file defshell -bash startup_message off term screen-256color and this is what I can see in my terminal ...
2
votes
2answers
1k views

How do I get the F1-F12 keys to switch screens in gnu screen in cygwin when connecting via SSH?

I'm connecting to a desktop running cygwin via SSH from the terminal app in Mac OS X. I have already started screen on the cygwin side and can connect to it over the SSH session. Furthermore, I have ...
1
vote
2answers
117 views

gnu screen not to change my window titles

I set meaningful names to new windows I create in gnu screen, but then when I 'cd' or open vim that name gets changed to 'pwd' for instance. Is there a way to prevent screen from changing the title? I ...
6
votes
3answers
2k views

when running screen on OSX, command+r messes up arrow keys in vim across all screens

How do you unwind this? because you wind up pressing command r all the time to reload your browser, and often you're in the terminal. Since I haven't figured out how to re-enable the arrow keys, I ...
0
votes
1answer
47 views

gnu screen: previous search result

In GNU Screen, I can do a reverse text search by pressing ^A and then typing [?search_string, and press n to go to the next (reverse search) result. But if I go too far and want to go back one result, ...
1
vote
1answer
249 views

Running emacs in GNU Screen overrides .emacs settings for [home] key binding in FreeBSD 8.2

If I use the following .emacs file, I am able to go to the beginning/end of the current line using the home/end keys as I would expect. (keyboard-translate ?\C-h ?\C-?) (add-to-list 'load-path ...
5
votes
3answers
2k views

Reattaching screen (having irssi running) forces window resize

Whenever I reattach to my detached screen (containing Irssi), my Putty screen is resized to something it has been at startup. If I change the window size after this, detach the screen and resize it ...
1
vote
2answers
4k views

Linux: wmctrl cannot open display when session initiated via ssh+screen

I'm using wmctrl on an Ubuntu machine to manage windows from a script, that I run inside a (gnu) screen. If I start the screen session from the local machine, wmctrl works fine, including if I ...
1
vote
3answers
240 views

VIM/Screen background color is inverted for non-text characters

I'm trying to use a vim while inside a screen session. For some reason, the background color for the parts of the screen without text are displaying as dark while the parts with text are displaying as ...
2
votes
2answers
242 views

Vim not colouring the end of lines when run inside screen

When vim is started inside of gnu screen it does not colour the background after text. Screen looks like it should be setup for handling 256 colours correctly: $ screen $ tput colors 256 $ echo ...
0
votes
1answer
29 views

GNU Screen equivalent for X11 aplications [duplicate]

What is the X11 equivalent of GNU Screen for X11 applications? I know there is VNC, possibly RDP and other candidates, but last week when tuning up my VNC config I've stumbled upon a project, that was ...
2
votes
2answers
2k views

List processes being run inside a screen (Linux) session

I have several screen sessions, each one of them is running one java application. For example, I have these 3 screen sessions : 7361.ARM48 (Detached) 7397.ROP90 (Detached) ...
24
votes
5answers
11k views

How to scroll up and look at data in GNU screen

I am using a mac (snow leopard). I am a ruby on rails developer and I watched a screencast on GNU screen and am trying it out. So far I like it. On a window when I start server I get to see the log ...
31
votes
3answers
21k views

Unix: How to unsplit in screen

I'm trying to learn how to use screen, in unix so that I don't have to open up several ssh connections and terminal windows just because I want to do more than one thing at the same time on a machine. ...
3
votes
1answer
360 views

GNU Screen: run arbitrary command in the status bar?

Is it possible to get GNU Screen to display the output of an arbitrary command, e.g. who | wc -l, in the status bar, refreshing it, say, every minute?
76
votes
6answers
30k views

tmux vs. screen

I'm about to get back into using screen, but I have been hearing people occasionally mention tmux as a better alternative. Does it really offer an alternative to all the features screen offers, such ...
1
vote
1answer
37 views

Why is vim inserting the contents of ". after I leave insert mode

vim is doing something that I can't quite figure out. When I leave insert mode, and navigate with j/k/h/l within a second of doing so, vim appends the contents of the ". buffer. On a tip from How to ...
14
votes
2answers
5k views

Sharing a GNU Screen Session

I have a meeting with a professor coming up shortly, but he won't be at school for a face-to-face meeting. Instead he will meet with me via Skype and an SSH login. I'm a heavy user of GNU Screen, but ...