Allows you to detach from your session and later detach to the session. Got info from here.
# session management
tmux ls (or tmux list-sessions)
tmux new -s session-name
Ctrl-b d Detach from session
tmux attach -t [session name]
tmux kill-session -t session-name
tmux – starts tmux server
ctrl-b <command> – this is not for shell, this is for tmux. tmux, do this command
ctrl+b -> c -> creates new window
ctrl+b -> , -> rename window
ctrl+b -> p -> previous window or n for next
ctrl+b -> w -> list open windows
ctrl + d – kills a window in linux terminal, also works in tmux (not sure about running processes)
tmux new -s sessionname – creates new session, run something in there and ctrl+b -> d to leave.
ps aux | grep <something> – shows the process running
tmux list-sessions – list sessions
tmux attach -t sesisonname