3 ms·
> One runs `tmux` and the other `tmux a`. Here's how to do this with screen instead of tmux. Terminal 1: screen -mS hello # create screen named "hello" Te
by spurgu 5y ago
> One runs `tmux` and the other `tmux a`.
Here's how to do this with screen instead of tmux.
Terminal 1:
screen -mS hello # create screen named "hello"
Terminal 2:
screen -x hello # attach to shared screen
- jolmg 5y agoJust Terminal 1: screen Terminal 2: screen -x seems to be enough, too.
- spurgu 5y agoYes, but it gets confusing if you already have previous screens running (-x opens the right one if you only have one) so I provided a more "foolproof" version. I always use named screens since it's quicker and more organized than typing `screen -ls` before every time and then making a decision on whether or not to name the new one (I still think it's better to name the first one in any case in the vast majority of (my) cases).