Action disabled: diff
kb:localhost:software:tmux:start
tmux
Changelog
- 2026-03-18: Init
Quick start
sudo apt install tmux # on Ubuntu
Three different ways to trigger a tmux command:
tmux <COMMAND># via tmux program(C-b) :<COMMAND># tmux command window(C-b <HOTKEY>)# tmux command hotkey/keybinding
Working with sessions (equivalent to a single desktop environment):
- Start a new session:
tmux(new command) - See all keybindings:
C-b ? - Detach session:
C-b d(detach) - Attach session:
tmux attach - List sessions:
tmux ls - Kill session:
tmux kill-session/tmux kill-server
Working with windows (equivalent to individual program windows in DE):
- Create new window:
C-b c(neww) - Change windows:
C-b 0/C-b 1/ ... /C-b l(last window) - Kill window:
C-b &
Working with panes:
- Split window into panes:
C-b %orC-b "(split-window) - Change panes:
C-b Up/C-b Down/ ... - Move panes:
C-b {/C-b } - Tile panes:
C-b M-5(e.g. for even tiling) - Kill pane:
C-b x
Enable mouse support with :set -g mouse on. Some things one can do:
- Left-click pane to set as active
- Left-click drag pane borders to adjust
- Right-click pane for context menu
- Left-click window title to set as active
- Left-click drag pane text to copy (
C-b ]to paste)
Configure tmux server with config file at ~/.tmux.conf.
Copying
kb/localhost/software/tmux/start.txt · Last modified: 2 hours ago (18 March 2026) by Justin
