Knowledgebase

How to Keep Commands Running After Closing SSH with tmux Print

  • 0

Use tmux terminal multiplexer so long builds or scripts never abort if your internet drops.

Step-by-Step Instructions

  1. Install tmux on your VPS.
  2. Start a named session before running long tasks.
  3. Detach safely with Ctrl+B then D, and reattach later.
sudo apt install -y tmux
tmux new -s work
# Later reattach:
tmux attach -t work

Pro Tip: You can list active sessions anytime using tmux ls.

Need assistance? Open a ticket in the A1 Client Area or contact our 24/7 NOC Engineering Team on WhatsApp at +1 (406) 229-9597.


Was this answer helpful?

« Back