Skip to main content

TMUX

13th October, 2022

Updated: 13th October, 2022

  • brew install tmux

  • open tmux: tmux

  • hold ctrl+b hit shift % to split tabs vertically

  • hold ctrl+b hit shift " to split tabs horizontally

  • exit or ctrl+d removes a tab

  • hold ctrl+b and press c to open a new window

  • switch to previous window use ctrl+b p for previous n for next or enter the number

  • detach from current session ctrl+b d or capital D for a choice of which sesstions to detach

  • to reattach tmux ls tmux attach -t 0

  • If you prefer to give your sessions a more meaningful name (instead of a numerical one starting with 0) you can create your next session using

  • tmux new -s databaseThis will create a new session with the name “database”.

  • You could also rename your existing session:tmux rename-session -t 0 database The next time you attach to that session you simply use tmux attach -t database.

  • ctrl+b ? gives you al ist of commands

  • ctrl+b z make pane go full scren hit ctrl+b z again to shrink back to previous size

  • ctrl+b C-<arrowkey> resize pane in direction of arrow key

  • ctrl+b , rename current window

#command-line/tmux


c2460cd7-8e34-4005-8fc7-70a77646bcda

Created on: 13th October, 2022

Last updated: 13th October, 2022