- [[slurm]] ```bash # new session without assigning name tmux tmux new tmux new-session # new session with name abc tmux new -s abc # detach from session Ctrl b d # show all sessions tmux ls tmux list-sessions # show all sessions when inside a session Ctrl b s # delete active pane within a session exit # kill session abc tmux kill-ses -t abc tmux kill-session -t abc # split pane within session Ctrl b Shift % # vertical split Ctrl b Shift " # " # "allows for horizontal split # between panes Ctrl b left/right/up/down # rename session WITHIN the session Ctrl b $ # rename session OUTSIDE the session tmux rename-session -t oldname newname # attach to last session tmux a tmux at tmux attach tmux attach-session # attach to session with name abc tmux a -t abc tmux at -t abc tmux attach -t abc tmux attach-session -t abc # navigate between sessions Ctrl b ( Ctrl b ) # check version tmux -V # list every tmux command and its arguments tmux list-commands # kill all sessions tmux kill-server ``` # References - [my Medium article](https://medium.com/better-programming/code-and-develop-more-productively-with-terminal-multiplexer-tmux-eeac8763d273) - [tmux Cheat Sheet & Quick Reference](https://tmuxcheatsheet.com/) - [Install tmux on OSX and Basics Commands for Beginners](https://medium.com/@jeongwhanchoi/install-tmux-on-osx-and-basics-commands-for-beginners-be22520fd95e)