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

-1
votes
0answers
11 views

Enable scroll in conemu with Windows LXSS bash

screen in Bash from Windows Linux Subsystem used in ConEmu have no scrolling enabled. How can I enable it?
0
votes
1answer
34 views

Screen ctrl+a key not working for going to start of line

I recently started using screen: ctrl+a key not working for going to start of line How do I configure it? Is there a better alternative over screen?
0
votes
0answers
8 views

How can I keep the bell-in-window from inverting the window title in gnu screen

This is really an edge thing but maybe somebody has an idea. I started with the screenrc entry hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" and I've spent a lot of time ...
2
votes
1answer
3k views

Send command to another user's screen terminal

I have two users; user1 and user2. I have a bash script run by user1, that needs to run a command on a screen terminal started by user2. Suggestions? Thanks Max
1
vote
1answer
30 views

How to change SYSIN and SYSOUT (curses mode) for a background process to another terminal session (screen utility)?

I currently run an background process started by a deamon process. It has no terminal and works fine as it doesn't have any screen i/o. It is started via a shell script which I can change. The shell ...
0
votes
2answers
444 views

Correctly display the GNU screen session title in status bar

in GNU screen, I want the title of the session to be displayed in the status bar. It is working but not exactly as I wanted. I have the following backtick defined in my .screenrc: backtick 100 30 30 ...
0
votes
0answers
10 views

How to configure screen to treat LF characters as newline?

How can I adjust my ~/.screenrc file to treat LF characters as new-line? https://www4.cs.fau.de/Services/Doc/screen/screen.html#SEC5 I'm looking at: Note: Your terminal must be configured to treat ...
16
votes
2answers
6k 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 ...
60
votes
19answers
39k 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
14 views

ctrl + c will not kill terminal (osx bash) program `screen`

I got into a GNU screen and couldn't get out of it, it was hogging my terminal window. I tried a number of hotkey combos with no success. I've listed a few of the hotkey combos below. Command $ ...
4
votes
3answers
2k views

How can I start new window in the same screen session automatically?

I read How can I start multiple screen sessions automatically?, but I don't understand the first accepted reply: screen -dmS "$SESSION_NAME" "$COMMAND" "$ARGUMENTS" In my case I need to ...
11
votes
3answers
14k views

How can I start multiple screen sessions automatically?

I'm trying to build a command that launches screen, creates four sessions with different names, and run four different commands. I know how to do this manually: 1. screen 2. ./command1 args 3. CTRL-...
1
vote
0answers
53 views

Kill all Screen Sessions with Same Name

I have multiple screen sessions with the same name due to a bug. How can I remove these all in 1 command without affecting other screen sessions? I used the command from this post: http://...
1
vote
1answer
28 views

GNU screen is displayed differently on different machines

I am running $ screen --version Screen version 4.03.01 (GNU) 28-Jun-15 on Debian Jessie via SSH. If I create a screen from a machine running Gentoo and then use it from there, Unicode characters (...
4
votes
4answers
1k views

How to disable notify on “screen -D -R”

I'm running screen -D -R (with optionally using -S name), and it works great, but has one problem - when given screen doesn't exist earlier, i get notification "New screen...", and irritating wait. ...
0
votes
0answers
6 views

“screen -r” attaches to wrong screen if I have screens with similar names

Screen version 4.01.00devel (GNU) 2-May-06, running on Ubuntu Server 14 I make a screen, detach, make another screen with a name matching the first few characters of the other screen's name, and ...
1
vote
1answer
26 views

Launch consecutive commands in screen

I would like to launch cmd1 and cmd2 in the same screen instance. I want cmd2 to be launched only when cmd1 has completed. I have tried this: screen -d -m ./cmd1.bash "$File" && ./cmd2....
5
votes
1answer
2k 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
46 views

vim comment issue with GNU screen and solarized

I just installed solarized. I am using the Xresources and vim color file. All works fine when not inside GNU screen. When running vim from inside GNU screen, the comments look different - they are not ...
1
vote
0answers
29 views

SSHing gives me UTF-8, but using 'ssh -t' does not

I'm accessing my desktop machine using SSH to connect to a Screen session. If do this: ssh -p 12345 111.11.111.111 screen -r "Jelly" I have UTF-8 support working fine. However, if I do this: ssh -...
0
votes
1answer
613 views

In GNU screen, how do you reload .bashrc in all windows?

I typically use about 10 windows in GNU screen and am constantly customizing my .bashrc. I would like to be able to source .bashrc across screen windows with a one-liner. Can I broadcast a command ...
2
votes
4answers
7k views

How to remove many detached screen sessions in Unix?

I have been working in different screen sessions in past projects, so I have a few screen sessions accumulated. Now I have been asked to remove excess/unnecessary screen sessions from the Unix box. ...
0
votes
1answer
24 views

Screen does not read /etc/profile.d on startup

Whenever I start screen, my alias definitions in /etc/profile.d are missing within screen. How can I make screen read/source all files in /etc/profile.d/ on startup?
17
votes
3answers
7k views

Updating screen session environment variables to reflect new graphical login?

I use linux, and I like to do all my command-line work within a single screen session, so that I can restart my graphical login and such without losing my terminals. However, when I log out and back ...
113
votes
8answers
69k 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 sessions?...
1
vote
1answer
10 views

Easily copy current command line in GNU-Screen

I want to copy the text command to copy in the current command line in a very fast way. user@server:~/somepath$ command to copy I know this way: Use Ctrl+[ to enter copy mode, Navigate by arrow ...
36
votes
2answers
7k views

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?
0
votes
1answer
37 views

How can I move my current session from GNU screen to tmux?

My IRC client, irssi, is currently active inside a GNU screen session. In hindsight, I wish that I'd have used tmux instead of GNU screen. How can I migrate the active process (or session) from GNU ...
4
votes
4answers
2k 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
0answers
17 views

Screen session behavior on shutdown

I want to run a PHP-Script inside a screen session at startup(I figured that out already). It is very important that the PHP-Script is exited like it does with "Ctrl + C". Now I don't really know how ...
21
votes
3answers
3k views

Move a program started in GNU screen out to another terminal

I want to terminate an instance of GNU screen whilst preserving the process running inside it. So I opened my regular terminal emulator program and executed screen. Then I used that instance of ...
3
votes
1answer
1k views

GNU screen freezes when starting session over SSH, works locally. What's wrong?

On an iMac running Snow Leopard I can open a terminal window and start a 'screen' session with no issues. However, if I ssh into the same machine (from elsewhere or locally) and then try to start a '...
0
votes
1answer
25 views

Can I pass a key combination through screen to a program?

I've got screen setup to switch windows with the function keys. However, I am trying out Vim debugging and to start it I'm told to use the F5 key. Obviously this just switches me to screen window 5 (...
0
votes
1answer
52 views

How to auto execute a command in screen window while creating a screen session

I have configured my .screen rc to create 10 windows while creating a screen session as screen -t task1 0 screen -t task2 1 screen -t task3 2 . . What I want is whenever I ...
1
vote
2answers
230 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, ...
3
votes
1answer
91 views

Generate encrypted password for a GNU screen session

How to programatically generate a password for a GNU screen session? Normally, to define a password for an existing GNU screen, we have to: Start a screen Do Ctrl+A :password Upon reattach, screen ...
0
votes
0answers
23 views

GNU Screen gives odd linewrapping behaviour for terminal applications

I followed these instructions to set up GNU Screen to run two terminal applications on Computer A, then connected to them from Computer B. However, on Computer B, I seem to get strange linewrapping ...
14
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, C-...
8
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 ...
1
vote
0answers
53 views

Running GNU Screen on Raspbian with vertival split spilling content

I am running Screen on a Raspberry Pi. My shell on the Pi is ZSH with OH-MY-ZSH. I have connected to the Pi via SSH from a Mac. When I run certain commands like HTOP or Vim the output spills over to ...
3
votes
1answer
61 views

Why is GNU screen interfering with Vim's Ctrl-Pageup to switch tabs?

I normally use Ctrl+PageUp and Ctrl+PageDown to switch tabs in Vim. But when running Vim inside GNU screen, they don't switch tabs and instead have the effect of switching case. I am running the ...
49
votes
3answers
8k 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 ...
1
vote
2answers
165 views

Start a few programs in a split terminal

I want to start a few programs with a single launch script and monitor their outputs to the console. The easiest way would be to launch in background an xterm for each program, but that's not very ...
2
votes
1answer
2k views

Horizontally split-screen with two programs?

I have two programs A and B. I want a single command, which will run Program A and Program B in two different terminals but in the same tab, i.e, in a horizontally split terminal. I know screen can do ...
8
votes
4answers
4k views

How to run a second command in same screen session

I'm starting the first command in screen like this: screen -d -m -S testen -t lalala watch df -h which gives me a screen session running in the background and I can reconnect at a later time. How ...
0
votes
0answers
35 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
37 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 ...
39
votes
3answers
31k 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. ...
0
votes
1answer
61 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
30 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 ...