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.

Loading

Full text search

Recent Posts

  • Generate secure password
  • AWS Compute Savings Plans
  • AWS Zonal Shift
  • Coffee break…
  • Prevent private key from being committed to git
  • aws (14)
  • coffee (2)
  • headfi (1)
  • linux (9)
  • others (61)
  • security (2)
  • tech (41)
  • terraform (3)
  • wordpress (2)

Loading

apache aws awscli azure backup boot cloud coffee docker ec2 EL8 ElasticBeanstalk espresso featured git kernel lelit linux lvm meltdown MFA nat gateway php power proliant python rdp Redhat RHEL rpm Ryzen scp security smartarray smart switch snapshot spectre tech terraform ubuntu ubuntu upgrade vpn windows wordpress workspace

©2026 blog.headdesk.me | Powered by SuperbThemes