Questions tagged [gnu-screen]

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.

Links:

658 questions
547
votes
16 answers

Reload a Linux user's group assignments without logging out

When assigning a user's secondary group list using: # usermod -G is it possible to force this group assignment to take effect without logging out all running sessions? This would be very useful in the situation where a Screen…
Simon
  • 5,962
  • 3
  • 16
  • 13
365
votes
8 answers

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, such as activity monitoring in different windows,…
Alison R.
  • 4,190
  • 3
  • 19
  • 13
267
votes
3 answers

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.
moinudin
  • 3,024
  • 2
  • 18
  • 16
179
votes
8 answers

How to execute a command in screen and detach?

How can I get screen to execute a command and then detach (That is, automatically in a single script without further input beyond initially starting the script)? e.g. I run myscript.sh and it automatically starts a screen session, executes a…
darkfeline
  • 2,072
  • 2
  • 14
  • 15
126
votes
4 answers

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

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 to allow detaching the current session and later…
Keitai
  • 1,271
  • 2
  • 9
  • 4
125
votes
22 answers

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 the user experience and functionality of those tools when…
Flow
  • 1,358
  • 2
  • 18
  • 26
106
votes
5 answers

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. I have found the split command quite useful, but…
Svish
  • 38,310
  • 61
  • 136
  • 181
86
votes
4 answers

How to switch between two latest windows in tmux?

screen has a Ctrl-a,Ctrl-a to switch between two latest windows? How to do it in tmux?
kev
  • 12,462
  • 13
  • 59
  • 72
79
votes
8 answers

How can I view more of my history in Screen on Linux?

I was running scripts overnight from the command line (inside Screen on a Linux EC2 instance) and some errors that I was not tracking occurred. I want to "scroll up" or view more of the history in Screen, but I cannot seem to find any commands that…
T. Brian Jones
  • 945
  • 1
  • 7
  • 8
75
votes
4 answers

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 pressing Esc and any other key afterwards the…
Ton van den Heuvel
  • 3,664
  • 4
  • 27
  • 34
70
votes
3 answers

Transfer current command to a detachable session (tmux/screen)

I'm currently running a backup and it now needs to be transferred to detachable one like on tmux or screen. Is there a way to do this when the command is currently running? I can send the command the background by pressing Ctrl+Z and put it back up…
Jürgen Paul
  • 1,025
  • 2
  • 12
  • 19
70
votes
7 answers

Cannot make directory '/var/run/screen': Permission denied

Sometime, usually after a crash or sudden shutdown, screen refuses to start. Commands like screen screen -ls screen -r screen -d result in the following output Cannot make directory '/var/run/screen': Permission denied What's the issue here? How…
Huey
  • 1,431
  • 1
  • 11
  • 17
57
votes
13 answers

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 forwarding), and re-attach to your screen…
apinstein
56
votes
3 answers

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 bind C-1 for example, to switch to pane #1. Or…
Ivan
  • 4,479
  • 5
  • 25
  • 26
51
votes
6 answers

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 and i have to make C-a S all over again? How can i…
Cesar
  • 635
  • 1
  • 6
  • 6
1
2 3
43 44