Menu
blog.headdesk.me
blog.headdesk.me

tmux send input to all panes

Posted on 2018/10/272019/05/15

Run tmux and have it split into 2 panes, each running a separate process, and send input to all panes. Here I start up one container in each pane, then turn on input broadcast.

One can easily modify the commands and have tmux gives control over a cluster of servers. Or ssh to different servers and manage them all at once.

tmux new 'docker run -it --name sh1 5182e96772bf' \; \
split-window 'docker run -it --name sh2 5182e96772bf' \; \
setw sync

This is trememdously useful for myself. To turn off input broadcast, run

^a :setw sync off

Note that I have the prefix key changed from b to a. I’ve been using screen forever and it’s easier for me this way.

facebookShare on Facebook
TwitterTweet

Full text search

Recent Posts

  • Terraform and segregated permissions
  • LVM Compression and Deduplication
  • Edit gpg encrypted file with vim
  • Lelit Elizabeth PL92T Pressure Tuning
  • jq transformation
  • aws (8)
  • coffee (1)
  • headfi (1)
  • linux (6)
  • others (58)
  • security (2)
  • tech (36)
  • wordpress (2)

apache aws awscli azure backup clearlinux cloud coffee docker DOCP ec2 EL8 epyc espresso featured gpg jenkins kernel lelit linux lvm meltdown memory MFA mikrotik php python rdp Redhat RHEL roasting rpm Ryzen site-to-site snapshot spectre tech terraform tuning ubuntu ubuntu upgrade vim vpn wordpress xdotool

©2023 blog.headdesk.me | Powered by SuperbThemes & WordPress