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

0
votes
0answers
13 views

GNU screen - open new window in working directory of current window in a named (sessionname) session?

In order to open a new screen window in the same directory as the current working directory of the screen window you are launching it from (rather than the directory you initially launched the screen ...
0
votes
1answer
14 views

iTerm2 -> ssh -> gnu screen -> split window: scroll wheel not working

I'm using Mac OS X as a workstation. With iTerm2, I connect to a remote host (Ubuntu Server) using this command: ssh -t user@host screen -D -R -R But I can't get the scroll wheel to work correctly, ...
54
votes
16answers
34k views

What's the least conflicting prefix/escape sequence for screen or tmux?

Screen goes with Ctrl+A. tmux on the other hand—as developed within screen—uses Ctrl+B. Both keystrokes, however, are also used in editors, shells, etc. Thus choosing either one degrades ...
0
votes
1answer
23 views

Backup MySQL, using Screen and Crontab

I'm trying to backup my database's table every day, using mysqldump, screen and crontab. If I run only mysqldump, it dumps correctly, but if I do it trough screen, the output file is blank. Editing ...
36
votes
3answers
26k 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. ...
41
votes
2answers
6k views

Slight delay when switching modes in vim using tmux or screen

Switching to and from insert mode in Vim is no longer instantaneous since I use tmux. After pressing Esc in insert mode, it takes a noticeable amount of time to actually get out of insert mode. After ...
6
votes
3answers
2k views

How to go past window 9 in GNU Screen without going to Window list? [duplicate]

I use GNU Screen tool to keep my sessions alive on the system. To switch between windows I use Ctrl+a N where N is the number of the window. I want to use similar keystroke to access windows with ...
11
votes
3answers
1k views

GNU screen: key to access tabs above 9

Using GNU-Screen for a long time. C-a 1 2 n p to navigate to other tabs. This works till 9. I often have 10, 11 etc. Is there any way to go to them quickly ? Currently, i have to do: C-a 9, ...
0
votes
1answer
18 views

GNU Screen hangs in ConEmu

I just did an update of Cygwin on a Windows 7 box. When I open ConEmu to a Cygwin Bash terminal, everything seems fine. However, if I run GNU Screen, the terminal locks up until I forcibly kill ...
1
vote
1answer
17 views

Does GNU screen issue signal 28?

Bit of a long shot... I'm executing a long-running process that takes several hours. The process is the re-indexing of the CDDB database's fuzzy matching file. The process keeps quitting after a ...
0
votes
0answers
5 views

Exiting copy mode in GNU screen takes too long when tailing

Start screen, and run a command that tails a frequently-updated logfile, or a command akin to this: while true; do date; sleep 1; done Now hit CTRL+a+ESC to enter copy mode. Scroll around or ...
3
votes
3answers
2k views

Use of screen on terminal is blocked by length of user name

I am a user of screen on terminal, but i tried to mount a screen on my Macbook and results in this warning: $ screen LoginName too long - sorry. I read on web and the suggestion is change the ...
0
votes
1answer
14 views

Can't open display after reattach screen session

When I first start my screen session my X-display works. I.e., I can start X-apps like xterm, etc. However, when I reattach my previous screen session, from a different X, the X-display no longer ...
0
votes
1answer
16 views

Moving from screen to tmux but having trouble in copying (double click doesnt work in tmux)

While in putty double clicking a word copies it to clipboard, I am unable to copy by doubling clicking when I am using tmux in putty. I am able to do it using SHIFT key, but I want to do it without ...
0
votes
1answer
92 views

How can I send keyboard input into a GNU screen session without attaching to it?

I need to send keyboard input to a GNU screen session without attaching to it. I have tested this example but it does not work: screen -S ffa3 -X "say SERVER REBOOT IN FEW MINUTES" No I am also ...
85
votes
7answers
40k views

tmux vs. screen

I'm about to get back into using GNU 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, ...
10
votes
1answer
291 views

How to disable alternate buffer in GNU screen itself but not for vim, less inside it?

What I would like to accomplish is mouse wheel scrolling behavior that I'm used to in a regular ssh session. In bash prompt mouse wheel should scroll my terminal output, and inside less/vim - the ...
0
votes
1answer
81 views

How to switch to an existing vim instance from inside of screen when opening a file twice

When i work on many files with screen and vim, often i try to open a file already open.. I must switch manually between screen windows witch ctrl-space and press ctrl-g until i find the right window. ...
9
votes
7answers
13k views

rename tmux window name to prompt_command, ps1 or remote ssh hostname?

I would love to be able to have my tmux window title automatically renamed to prompt_command, ps1 or just the hostname of a machine I ssh to. having 9 windows opened labeled "ssh" is really useless. ...
-1
votes
1answer
33 views

How do I create a new blank window in screen when I have multiple sessions running?

I'm running multiple concurrent screen sessions for a variety of projects. I'm attached to one and issue the command (Ctrl-A c) to create a new window. It creates the window, but strangely, it's a ...
2
votes
1answer
2k views

How to correctly set GNU Screen to display currently running program in hardstatus

In bash, to display the name of the current program in the GNU Screen hardstatus line takes only two configuration lines. First, tell screen what the end of your prompt normally looks like, and supply ...
0
votes
1answer
268 views

Run hardcopy on a specific screen window

I'm trying to run screen to connect to a serial port. I want it to run a command, and then every 60 seconds I want to use hardcopy to write which is shown to a log file. So far I've done this: ...
0
votes
0answers
9 views

gnu-screen scrollback mode documentation for whether it blocks execution?

I saw in this answer that gnu-screen's scrollback mode blocks execution because gnu-screen "blocks the output pipe". Where is the official documentation for gnu-screen's scrollback mode behavior ...
14
votes
3answers
5k views

Make GNU screen survive reboot

I am using GNU screen a lot. I find it very annoying that everytime the server has to be rebooted I lose all my sessions (even if I know in advance, I need to set-up everything again). I've searched ...
0
votes
1answer
24 views

How do I save my screen GNU session?

I am trying to use a GNU screen session to go through a long code line by line to debug. I'm working in it through a shell. I start the screen with screen -S Name. Normally I run a few lines of ...
9
votes
2answers
2k views

GNU Screen - Removing vim window after quit

I use urxvt with GNU screen with X11 on my mac. I like it a lot. My only issue, is that when I quit vim, it puts the shell prompt underneath the vim window. This isn't a huge issue, but it ...
0
votes
1answer
18 views

How to open up an old screen session after ssh logged out

I am getting the following message: $ screen -R Poly There are several suitable screens on: 14583.PolygenicOCD3 (Detached) 61499.Poly (Detached) 13205.PolygenicOCD (Detached) ...
1
vote
1answer
25 views

What is this 'stuff' in the command being sent to screen?

To send Control+C to a detached screen-session I can do as has been demonstrated elsewhere: screen -S NameOfSession -p 0 -X stuff $'\003 or screen -S NameOfSession -X -p 0 stuff "^C" My question ...
0
votes
1answer
13 views

gnu-screen's caption/hardstatus: how do you append text after the session-name?

For older versions of gnu-screen (i.e. without the %S), I found out how to print the session-name in the hardstatus or caption of gnu-screen by reading this answer. The solution is to add the ...
0
votes
0answers
36 views

R: how to open a running r script in rstudio

I've been running an analysis in a computer cluster that works on linux from my computer, and I run it on rstudio. This analysis takes like 12 days, so before running the r script I made a "screen" to ...
20
votes
5answers
3k views

Flashing window in gnu screen

I really like gnu screen but there is a problem in my environment when I use it. Examle: username@domain:/var/www$ l Display all 130 possibilities? (y or n) when you click [Tab] to perform ...
19
votes
2answers
8k views

Gnu screen: kill a frozen tab

How to go about closing a stalled screen tab (the machine is no longer reachable) ?
41
votes
11answers
12k views

How do you get screen to automatically connect to the current ssh-agent when re-attaching to an existing screen?

If you start a screen session while ssh-agent is running (from ssh -A agent forwarding), accessing ssh-agent works fine. However, if you detach from that session, log out, log in again (with ssh-agent ...
0
votes
1answer
52 views

Make less use alternate screen, but only if entire file won't fit on one screen

I'd like less to quit immediately if the entire file can be displayed within one screen. For this, I'd use the -F option: -F or --quit-if-one-screen Causes less to automatically exit if the ...
2
votes
4answers
5k views

how to remove a screen (detached sessions) in unix?

I have been working in different screen sessions in past projects , hence have a few screen sessions accumulated. Now i have been asked to remove excess/unrequired screen sessions from the unix box. ...
23
votes
2answers
8k views

Binding a command in tmux without using the prefix key

Is it possible to bind a tmux command to a key combination and use it directly without first pressing the prefix? I find C-b + n too cumbersome to switch panes, so I was wondering whether I could ...
0
votes
2answers
500 views

How to set the GNU screen log file name non-interactively

I'm trying to parse the output of a screen session from a script. The man page of screen says I can use the command logfile, but gives no indication of the syntax to use when I launch screen ...
0
votes
1answer
31 views

where to check out the screen detached command line application crash log on Ubuntu

So, I was running some application with the following command line after SSHing into my server, and after then detached the window by ctrl+a ctrl+d: SCREEN /bin/bash -c php index.php -whatever > ...
2
votes
3answers
1k views

Using screenrc, how can I make `C-a c` open a new window at the current window's working directory?

Using screenrc, how can I make C-a c open a new window at the current window's working directory? By default it appears to open the new window at the working directory at the time the original screen ...
1
vote
2answers
61 views

bash like --init-file in the tcsh

The bash/screen scenario: screen -dmS sessionname -c /path/to/screenrc the /path/to/screenrc contains for example screen -t windowtitle1 bash --init-file /path/to/window1.bashinit screen -t ...
112
votes
3answers
45k views

Rename screen session

Is it possible to change the name of a GNU screen session? Say I called started it with "screen -S foo" and I want to rename it to bar.
2
votes
1answer
73 views

Starting a detached screen session and a Java program with one command

I found an answer on super user that the following should create a screen session in detached mode. But it is not working in my situation. screen -dmS sessionname java -jar ...
2
votes
2answers
789 views

Clearing screen after quit in Windows vim with ConEmu/Cygwin

I'm trying to bring to work together 3 things: ConEmu, Cygwin and vim. The vim in question is not Cygwin vim, but the native Windows vim from gvim package (chosen because Cygwin vim does not support ...
33
votes
6answers
15k views

Bash vs. Gnu screen : Replace Ctrl-A with Ctrl-Shift-A

I'm a new user to GNU Screen. I've been using Bash for a very long time, and I want to give GNU Screen a try. As you know, GNU Screen uses 'C-a' (Control-A) as as the command character. Trouble is, ...
15
votes
1answer
4k views

Prevent gnu screen from resizing display size

Every time I start screen (screen -A) or try to connect to an already running screen session (screen -Ax) my terminal is resized to 80 columns. I want to prevent screen from resizing my terminal. I ...
3
votes
2answers
1k views

install screen from source code

I tried to install the screen command on RedHat from source code. But when I run the configure, it returned configure: error: !!! no tgetent - no screen So does anyone know how to fix it?
96
votes
8answers
53k 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 ...
5
votes
1answer
909 views

Local echo using Screen to connect to a serial terminal

Reading through the book "Building Wireless Sensor Networks" I learned that you can use the Screen utility to attach to a serial console. I tried using it to connect to an XBee module and it seemed ...
0
votes
0answers
43 views

Running a code remotely with screen but killed shortly after logout

I often run a code on a remote Linux/Ubuntu desktop with the use of screen. So I log in through SSH, start a screen, start the job, detach the screen and everything works fine. However, recently the ...
2
votes
3answers
2k views

gnu screen: reordering windows like browser drag+drop tab reordering

I have 20 windows open in my screen session, and I would like to reorder the right-most window 20 to say, just between positions 9 and 10 like this: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 ...