====== tmux ====== https://www.tmuxcheatsheet.com/ ===== Commands ===== ^ Attach to last session | tmux a | ===== Keyboard ===== ''Ctrl + b'' to enter command, one of the following: ^ Rename session | ''$'' | ^ Detach from session | ''d'' | ^ Move to previous session | ''('' | ^ Move to next session | '')'' | ^ New Window | ''c'' | ^ Close current window | ''&'' | ^ Previous window | ''p'' | ^ Next window | ''n'' | ^ Scroll mode | ''['' | ===== settings ===== ^ __set setting__ | '':'', then type | ^ enable mouse support | ''set -g mouse on'' | ===== tips & tricks ===== ==== launch automatically over SSH ==== if [ -z "$TMUX" ] && [ -n "$SSH_TTY" ]; then tmux attach-session -t ssh || tmux new-session -s ssh exit fi ===== troubleshooting ===== ==== open terminal failed: missing or unsuitable terminal: xterm-256color ==== Your system doesn't have xterm-256color. You could: export TERM=xterm Maybe the file ''/usr/share/terminfo/x/xterm-256color'' is corrupted. It may be fixed upon (system/package) upgrade / reinstall. Meanwhile you can use other terminfo entry. You can get the available options by ''ls /usr/share/terminfo/x''. ln -sf /usr/share/terminfo/x/xterm-color /usr/share/terminfo/x/xterm-256color ([[https://stackoverflow.com/questions/21523815/tmux-open-terminal-failed-missing-or-unsuitable-terminal-xterm-256color|source]])