This is a cheat sheet for basic tmux commands for session management.
tmux is a terminal multiplexer, allowing you to create, manage, and navigate through multiple terminal sessions from a single window. Below are some common commands to help you get started with tmux.
tmux new -s <session_name>Replace <session_name> with your desired session name.
To detach from a session, press Ctrl + b then d.
tmux attach -t <session_name>Replace <session_name> with the name of the session you want to reattach.
tmux kill-session -t <session_name>Replace <session_name> with the name of the session you want to delete.
tmux ls | grep : | cut -d. -f1 | awk '{print substr($1, 0, length($1)-1)}' | xargs -I {} tmux kill-session -t {}Warning: This command will terminate all your tmux sessions.
tmux ls