Tmux (Terminal Multiplexer) is a powerful tool that allows you to:
- Manage Multiple Terminal Sessions: Run multiple shell sessions within a single window and easily switch between them.
- Persistent Sessions: Keep your sessions running even after disconnecting, which is particularly useful for SSH connections. This can be particularly useful here since running the full PatientX.AI may take some time depending on the size of the dataset and model configuration. Without
tmux
, if the ssh connection disconnects, the code may not run to completion - Efficient Workflow: Split your terminal into multiple panes, allowing you to work on different tasks simultaneously.
tmux new -s session_name
This creates a new session named session_name
.
To detach from a session without stopping it, press:
Ctrl + b, then d
To list all running sessions
tmux ls
To reattach to an existing session
tmux attach -t session_name
For more details and advanced usage, refer to the official tmux documentation