<?xml version="1.0" encoding="utf-8"?><!DOCTYPE article  PUBLIC '-//OASIS//DTD DocBook XML V4.4//EN'  'http://www.docbook.org/xml/4.4/docbookx.dtd'><article><articleinfo><title>tmux</title><revhistory><revision><revnumber>6</revnumber><date>2025-03-22 13:05:26</date><authorinitials>crose</authorinitials></revision><revision><revnumber>5</revnumber><date>2025-02-04 13:43:29</date><authorinitials>crose</authorinitials></revision><revision><revnumber>4</revnumber><date>2025-02-04 13:42:56</date><authorinitials>crose</authorinitials></revision><revision><revnumber>3</revnumber><date>2025-02-04 13:38:34</date><authorinitials>crose</authorinitials></revision><revision><revnumber>2</revnumber><date>2025-02-04 13:32:18</date><authorinitials>crose</authorinitials></revision><revision><revnumber>1</revnumber><date>2025-02-04 13:31:40</date><authorinitials>crose</authorinitials></revision></revhistory></articleinfo><section><title>tmux</title><para><code>tmux</code> is a useful tool to keep long time tasks (a.e. magma, matlab) running on a computer without keeping your session online during the whole computation: </para><section><title>Session</title><itemizedlist><listitem><para>Initial Start: </para><itemizedlist><listitem><para>open a console and connect through SSH to the machine you want to run the task on (most likely: compute.math.uzh.ch) by typing the host name: <emphasis role="strong">[user@tlX] compute</emphasis> and enter your password (there is a script called 'compute' which does nothing else than 'ssh compute' - in our evironment it's not necessary to type 'ssh compute') </para></listitem><listitem><para>type <code>tmux</code>  </para></listitem></itemizedlist></listitem><listitem><para>Detach: </para><itemizedlist><listitem><para>to detach from screen (&quot;send it to background&quot;), press <code>Ctrl + b  d</code> </para></listitem><listitem><para>you now can log off from the terminal and your task will keep running </para></listitem></itemizedlist></listitem><listitem><para>Attach again: </para><itemizedlist><listitem><para>if you want to check progress of your computations, log into the machine where your task is running like you did before </para></listitem><listitem><para>Show list of sessions: <code>tmux ls</code> </para></listitem><listitem><para>use <code>tmux attach -t &lt;nr&gt;</code> to connect to your task. </para></listitem></itemizedlist></listitem></itemizedlist></section><section><title>Screen splitting</title><itemizedlist><listitem><para>Split <emphasis>Horizontally</emphasis>: Press Ctrl+b then &quot; - This creates a new pane below the current one. </para></listitem><listitem><para>Split <emphasis>Vertically</emphasis>: Press Ctrl+b then % </para></listitem><listitem><para>Close open pane: Ctrl+d </para></listitem><listitem><para>Navigate between panes using Ctrl+b and the arrow keys </para></listitem></itemizedlist></section></section></article>