Questions tagged [gnu-screen]

screen (GNU Screen) is a full-screen window manager that multiplexes a physical terminal between several processes, typically interactive shells. Before using this tag, read the "Which site is more appropriate?" section of the tag wiki.

screen (GNU Screen) is used to create virtual terminals, which run by their own when not under direct user control. This is especially useful while working with a remote system, when a disconnect can occur at any moment. In this case, the screen session will continue to execute and you may reattach a running screen later.

Screen also allows you to execute multiple commands in a single terminal without losing control over them.

One additional trick is that a single virtual screen can be used by several users simultaneously, allowing them to guide and observe actions of each other.

Which site is more appropriate?

If you intend to tag your question with this tag, consider if the question is more suitable for other Stack Exchange sites:

1022 questions
864
votes
11 answers

Kill detached screen session

I learned from somewhere a detached screen can be killed by screen -X -S [session # you want to kill] kill where [session # you want to kill] can be gotten from screen -ls But this doesn't work. Anything wrong? What's the correct way?
Tim
  • 1
  • 141
  • 372
  • 590
520
votes
5 answers

How can I assign a name for a screen?

I'm using the Screen multiplexer tool on the command shell and open a lot of screens. I then forget which process ID associates with which task. I would like to set a name for a screen, but I can't find an option in the man page. Currently, listing…
spankmaster79
  • 21,555
  • 10
  • 42
  • 73
454
votes
6 answers

How do I get out of 'screen' without typing 'exit'?

I screen -r'd into a Django server that's running and I can't simply Ctrl + C and exit out of it. Are there any alternative ways to get out of screen? Currently, I manually close the tab on my local PC and ssh back in, but that's becoming tiresome.
meder omuraliev
  • 183,342
  • 71
  • 393
  • 434
305
votes
11 answers

How to list running screen sessions?

I have a bunch of servers, on which I run experiments using screen. The procedure is the following : ssh to server XXX launch screen start experiments in a few tabs detach screen disconnect from the server While the experiments are running, I can…
Wookai
  • 20,883
  • 16
  • 73
  • 86
292
votes
10 answers

Using the scrollwheel in GNU screen

How can I set up GNU screen to allow the mouse's scrollwheel to scroll around in the scrollback buffer? I tried to Google about this, but most hits were on how to allow applications inside screen to use the scrollwheel.
JesperE
  • 63,317
  • 21
  • 138
  • 197
283
votes
5 answers

How do I increase the scrollback buffer in a running screen session?

Lets say I have a currently running screen session I am interacting with through putty. I've realized that the scrollback buffer is too small and would like to increase it without starting a new screen session. Is there a way to do this?
Zach
  • 29,791
  • 35
  • 142
  • 201
233
votes
7 answers

Copying the GNU screen scrollback buffer to a file (extended hardcopy)

How do I easily copy the GNU Screen scrollback buffer to a file? I.e., a more powerful version of the 'hardcopy' command? In GNU screen, I can use "Ctrl + A Esc" to enter the scrollback buffer. I could then mark the entire buffer and use "Ctrl + A…
user354134
217
votes
3 answers

How do I force detach Screen from another SSH session?

I had Screen running inside an SSH session. Terminal froze. After restarting Terminal, that Screen session still thinks it's attached. Maybe it is. Perhaps I don't really know what that means. I'd like to attach to that Screen session from a…
T. Brian Jones
  • 13,002
  • 25
  • 78
  • 117
189
votes
12 answers

Save Screen (program) output to a file

I need to save the whole output of Screen to a file to check later all the content. The reason is that I'm dumping a flash memory through a serial port, using Screen to interface with it. I would like to save it to a file to check memory…
Edoardoo
  • 2,739
  • 4
  • 18
  • 27
141
votes
13 answers

Getting back old copy paste behaviour in tmux, with mouse

This is what I used to do in tmux to copy-paste (using the mouse, the keyboard works differently and it is not what I am interested about): Select text with mouse, left-button pressed Paste text with middle-button I have upgraded my OS, and this…
blueFast
  • 41,341
  • 63
  • 198
  • 344
136
votes
9 answers

Terminal Multiplexer for Microsoft Windows - Installers for GNU Screen or tmux

I am looking for a terminal multiplexer for Microsoft Windows. I was unable to locate the installers for Microsoft Windows for both tmux and GNU Screen. Currently I'm using Putty to connect to my Linux machine from from Windows Machine. Can somebody…
Kamaal
  • 1,361
  • 2
  • 9
  • 3
135
votes
5 answers

How to scroll up and down in sliced "screen" terminal

I just installed screen and like the idea to divide linux terminal into multiple pieces. But I can't figure out one thing: How to scroll up and down, when I'm in screen. When I'm using regular linux terminal I can achieve this with Shift + Pg Up or…
Vor
  • 33,215
  • 43
  • 135
  • 193
116
votes
5 answers

What's a good Java, curses-like, library for terminal applications?

I would like to write a Java terminal application that does screen manipulation. Are there any good libraries out there that allow you to manipulate the screen like curses in the *nix/C world? Minimal features I'm looking for are windowing and user…
Francisco Canedo
  • 1,980
  • 2
  • 13
  • 16
110
votes
5 answers

List running Jupyter notebooks and tokens

How do you check the login tokens for all running jupyter notebook instances? Example: you have a notebook running in tmux or screen permanently, and login in remotely through ssh. Sometimes, particularly if you're logging in after a long time, the…
christopherlovell
  • 3,800
  • 4
  • 19
  • 26
108
votes
18 answers

What must I know to use GNU Screen properly?

I've just introduced a friend to GNU Screen and they're having a hard time getting used to it. That makes me think about the essential things he needs to know about the excellent Screen utility, the same things that you'd think worthwhile to teach…
Henry B
  • 7,947
  • 10
  • 42
  • 46
1
2 3
68 69