Skip to main content

All Questions

Tagged with
1 vote
2 answers
537 views

Does any terminal multiplexer (screen, tmux, zellij) support job suspension (Ctrl-Z) in Bash?

As far as I've seen, pressing Ctrl-Z on any terminal multiplexer, or trying to start them in the background, does nothing or crashes. I know that, in a sense, terminal multiplexers are a "...
Sebastian Carlos's user avatar
0 votes
1 answer
86 views

Mistakenly started a long running task on an ssh shell

I understand that a long-running job on a server should be started with nohup/screen/tmux. But sometimes by mistake, I will start a job w/o realizing how long it would take. For example, I recently ...
rivu's user avatar
  • 436
0 votes
0 answers
32 views

How to "reuse" the SSH connection created? [duplicate]

Here's my workflow and pain point: In a terminal, I first use tmux and create 3 panes, sometime even more. In each pane, I do a two steps SSH to connect to the work server behind a bastion server. In ...
user3768495's user avatar
0 votes
1 answer
3k views

How to execute a command in tmux and detach using a single line command?

How can I get tmux to execute a command and then detach (That is, automatically in a single line without further input beyond initially starting the session)? I don't know to write sophisticated ...
deadrat's user avatar
  • 11
0 votes
1 answer
98 views

How to get both the current working directory and the current process in the status line for tmux?

I would like to have two status lines with the first status line showing which directory the window is in and the second one showing which process is running in the window. Is this possible? I use ...
tattersail2207's user avatar
0 votes
1 answer
97 views

Start process and access the "shell" at a later time

I have a remote testing machine which is experiencing some failures. What I would like to do is trigger a gdb process upon failure on the remote machine, and then ssh into the remote machine and ...
Madden's user avatar
  • 345
4 votes
1 answer
1k views

Does tmux need a console?

I'm trying to automate the creation of a tmux session and windows within it running commands and have a script to do so and although it works fine when I run it from command line, it fails if I run it ...
Mortice's user avatar
  • 51
0 votes
1 answer
868 views

Auto-connect to a tmux or screen during ssh connection and how to set unique SESSION_NAME

I want to use tmux or screen automatically after ssh. I wrote some code in .ss/config which helps me with this. # ~/.ssh/config Match exec "[[ $(ps h o args p $PPID | wc -w) -eq 2 ]]" ...
debek's user avatar
  • 237
8 votes
1 answer
14k views

How do you unsplit all split panes in tmux?

In short, I'm looking for the tmux equivalent to the gnu screen 'only' command (Controla, Q). In gnu screen I will often split the window any number of times, then when I'm done and want to go back ...
Andrew Harrison's user avatar
4 votes
1 answer
1k views

How to write scripts that create multiple terminal panes, like tmux?

I'd like to write some scripts that would open multiple terminal panes in a single window, much like tmux or screen. I personally am well versed in tmux, and have used it for years, but other ...
Brad Parks's user avatar
  • 1,689
3 votes
2 answers
389 views

How to configure GNU screen or tmux to reattach to the previous session without using command line arguments?

By launching GNU screen or tmux as the initial default shell (set with chsh, for instance), passing arguments seems not to be supported, such as "-d RR" for screen and "attach" for tmux. chsh's ...
Pedro Palhoto's user avatar
4 votes
1 answer
6k views

Can attaching to tmux sessions be password protected, similar to gnu screen?

I've been using gnu screen for many years, and I've been looking into switching to tmux. I can't figure out how to make tmux require a password when attaching to a session. In gnu screen, I use ...
smcdow's user avatar
  • 141
27 votes
2 answers
9k views

Prevent Logoff from Killing tmux Session

I have noticed that a logoff (log out) from my X user session will kill any tmux session I have initiated, even sessions I had run with sudo tmux and similar commands. I am sure that this formerly did ...
palswim's user avatar
  • 5,277
8 votes
3 answers
8k views

Screen and kitty what should $TERM be?

Why does tmux report $TERM=screen-256color Normally kitty reports $TERM=xterm-kitty Which should I use if I run tmux inside kitty? Obviously kitty provides advanced functionality and that makes ...
Evan Carroll's user avatar
  • 31.8k
2 votes
1 answer
59 views

make logical screen larger than physical screen?

In tmux or screen or other, is there a way to make the logical screen larger than the physical screen - so you can (1) scroll around to see the whole screen, and (2) view different parts of the ...
hyperpallium's user avatar

15 30 50 per page
1
2 3 4 5