<!doctype html><htmllang="en">
<head>
<metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1">
<metaname="color-scheme"content="light"><metaname="theme-color"content="#faf4ed">
<metaname="description"content="Voidwalker tmux cockpit cheatsheet.">
<title>Voidwalker Field Manual // tmux</title>
<linkrel="stylesheet"href="assets/style.css?v=2"><scriptsrc="assets/app.js?v=2"defer></script>
</head>
<body>
<aclass="skip-link"href="#content">Skip to content</a>
<headerclass="site-header"><divclass="header-inner">
<aclass="brand"href="index.html"><spanclass="brand-mark"aria-hidden="true">V</span><span>Voidwalker<small>offline field manual</small></span></a>
<buttonclass="nav-toggle"type="button"aria-expanded="false"aria-controls="site-nav">menu</button>
<navclass="site-nav"id="site-nav"aria-label="Handbook">
<ahref="index.html">Setup</a><ahref="tmux.html">tmux</a><ahref="pe.html">pe</a><ahref="htb-workflow.html">HTB</a><ahref="zsh-terminal.html">Shell</a><ahref="recon.html">Recon</a><ahref="web.html">Web</a><ahref="ad-windows.html">AD</a><ahref="privesc.html">PrivEsc</a><ahref="transfer.html">Transfer</a><ahref="toolbox.html">Tools</a>
</nav>
</div></header>
<divclass="page-shell">
<mainid="content">
<sectionclass="hero">
<pclass="eyebrow">Module 01 // session control</p>
<h1>tmux <spanclass="accent">cockpit.</span></h1>
<pclass="lede">One target, one named session, three predictable work surfaces. Everything is plugin-free, true-color, mouse-aware and designed not to persist secret-bearing process state.</p>
<divclass="hero-meta"><spanclass="tag">prefix C-b / C-a</span><spanclass="tag">vi copy mode</span><spanclass="tag">OSC52</span><spanclass="tag">100k history</span></div>
</section>
<divclass="notice"><div><strong>Persistence is intentionally disabled.</strong> Tmux Resurrect and Continuum can write pane commands, arguments and scrollback to disk. Detaching keeps the live server running; restarting the server does not restore it.</div></div>
<divclass="search-box"><labelfor="page-search">Filter bindings and topics</label><inputid="page-search"data-page-searchtype="search"placeholder="Try: split, copy, VPN, resize…"autocomplete="off"><spanclass="search-hint"><kbd>/</kbd> focus · <kbd>Esc</kbd> clear</span></div>
<pclass="filter-summary"data-filter-summaryaria-live="polite"></p>
<sectionid="model"data-search-itemdata-search="session workspace htb-session attach detach model windows">
<h2>Session model</h2>
<p><code>htb-session</code> reads the active target, sanitizes its name, and creates a tmux session called <code>htb-<target></code>. It attaches from a normal terminal or switches clients when already inside tmux.</p>
<pre><code>pe target use keeper
htb-session
# equivalent: select while launching
pe session keeper</code></pre>
<divclass="grid">
<articleclass="panel"><h3>Window 1 · recon</h3><p>A three-pane layout rooted in the target directory. Use it for a main scan, service follow-up and lightweight monitoring.</p></article>
<articleclass="panel"><h3>Window 2 · shell</h3><p>A clean interactive Zsh window in the same target root for enumeration and tool work.</p></article>
<articleclass="panel"><h3>Window 3 · notes</h3><p>Opens <code>notes/notes.md</code> in <code>$EDITOR</code>. The file remains local to the target workspace.</p></article>
<articleclass="panel"><h3>Target tree</h3><p><code>nmap/</code>, <code>scans/</code>, <code>loot/</code>, <code>web/</code>, <code>exploit/</code> and <code>notes/</code> are created with a private root.</p></article>
</div>
</section>
<sectionid="prefix"data-search-itemdata-search="prefix control b control a send prefix reload config">
<h2>Prefix and config</h2>
<divclass="table-wrap"><table>
<thead><tr><th>Keys</th><th>Action</th><th>Note</th></tr></thead>
<tbody>
<tr><td><kbd>Ctrl-b</kbd></td><td>Primary prefix</td><td>The tmux default remains available.</td></tr>
<tr><td><kbd>Ctrl-a</kbd></td><td>Secondary prefix</td><td>Screen-style alternative; follow it with the binding key.</td></tr>
<tr><td>prefix <kbd>Ctrl-a</kbd></td><td>Send literal secondary prefix</td><td>Useful when a nested program consumes it.</td></tr>
<tr><td>prefix <kbd>r</kbd></td><td>Reload <code>~/.tmux.conf</code></td><td>Displays a confirmation message.</td></tr>
<tr><td>prefix <kbd>?</kbd></td><td>Show all tmux key bindings</td><td>Built-in tmux help; press <kbd>q</kbd> to leave.</td></tr>
</tbody>
</table></div>
</section>
<sectionid="panes"data-search-itemdata-search="panes split horizontal vertical move resize sync synchronize mouse zoom">
<h2>Panes</h2>
<divclass="table-wrap"><table>
<thead><tr><th>Keys</th><th>Action</th><th>Detail</th></tr></thead>
<tbody>
<tr><td>prefix <kbd>|</kbd></td><td>Split side by side</td><td>New pane inherits the current working directory.</td></tr>
<tr><td>prefix <kbd>-</kbd></td><td>Split top and bottom</td><td>New pane inherits the current working directory.</td></tr>
<tr><td>prefix <kbd>h</kbd> <kbd>j</kbd> <kbd>k</kbd> <kbd>l</kbd></td><td>Move left, down, up, right</td><td>Vim-style pane movement.</td></tr>
<tr><td><kbd>Alt-←</kbd> <kbd>Alt-↓</kbd> <kbd>Alt-↑</kbd> <kbd>Alt-→</kbd></td><td>Move without prefix</td><td>Fast navigation from a normal shell prompt.</td></tr>
<tr><td>prefix <kbd>H</kbd> <kbd>J</kbd> <kbd>K</kbd> <kbd>L</kbd></td><td>Resize by five cells</td><td>Repeatable while the key table remains active.</td></tr>
<tr><td>prefix <kbd>Ctrl-s</kbd></td><td>Toggle synchronized panes</td><td>Every keystroke goes to every pane in the window. The status message shows on/off.</td></tr>
<tr><td>prefix <kbd>z</kbd></td><td>Zoom current pane</td><td>Built-in binding; press again to restore the layout.</td></tr>
<tr><td>prefix <kbd>x</kbd></td><td>Kill current pane</td><td>Built-in confirmation. Check for foreground jobs first.</td></tr>
</tbody>
</table></div>
<divclass="notice"><div><strong>Sync-pane caution:</strong> disable synchronization before typing passwords or destructive commands. Confirm the status message after pressing prefix + <kbd>Ctrl-s</kbd>.</div></div>
</section>
<sectionid="windows"data-search-itemdata-search="windows create rename next previous select close list session detach">
<h2>Windows and sessions</h2>
<divclass="table-wrap"><table>
<thead><tr><th>Keys / command</th><th>Action</th><th>Detail</th></tr></thead>
<tbody>
<tr><td>prefix <kbd>c</kbd></td><td>New window</td><td>Starts in the current pane path.</td></tr>
<tr><td>prefix <kbd>,</kbd></td><td>Rename window</td><td>Useful for service-specific work such as <code>smb</code> or <code>web</code>.</td></tr>
<tr><td>prefix <kbd>n</kbd> / <kbd>p</kbd></td><td>Next / previous window</td><td>Built-in cycle.</td></tr>
<tr><td>prefix <kbd>1</kbd>…<kbd>9</kbd></td><td>Select window number</td><td>Window and pane indexes start at 1.</td></tr>
<tr><td>prefix <kbd>w</kbd></td><td>Interactive tree</td><td>Browse sessions, windows and panes.</td></tr>
<tr><td>prefix <kbd>d</kbd></td><td>Detach</td><td>The tmux server and its processes keep running in memory.</td></tr>
<tr><td><code>tmux ls</code></td><td>List sessions</td><td>Use before attaching to avoid duplicate workspaces.</td></tr>
<tr><td><code>tmux attach -t htb-keeper</code></td><td>Attach by name</td><td><code>htb-session</code> is normally easier and safer.</td></tr>
</tbody>
</table></div>
</section>
<sectionid="htb-bindings"data-search-itemdata-search="HTB P workspace V VPN status line target session">
<h2>HTB bindings</h2>
<divclass="grid">
<articleclass="panel"><h3>prefix + P · active workspace</h3><p>Runs <code>~/.local/bin/htb-session</code>. It switches to or creates the session for the currently active <code>pe</code> target.</p></article>
<articleclass="panel"><h3>prefix + V · VPN window</h3><p>Creates a window named <code>vpn</code> and runs <code>pe vpn up</code> in the foreground. Stop it with <kbd>Ctrl</kbd>+<kbd>C</kbd>.</p></article>
</div>
<p>The right side of the status bar shows a VPN indicator when a <code>tun</code>, <code>tap</code> or <code>wg</code> interface exists, plus the active target and clock. An indicator proves an interface exists—not that a specific target is routed through it. Verify with <code>pe vpn route "$IP"</code>.</p>
</section>
<sectionid="copy"data-search-itemdata-search="copy mode vi scrollback selection clipboard OSC52 mouse search">
<h2>Copy mode and scrollback</h2>
<divclass="table-wrap"><table>
<thead><tr><th>Keys</th><th>Action</th></tr></thead>
<tbody>
<tr><td>prefix <kbd>[</kbd></td><td>Enter vi copy mode.</td></tr>
<tr><td><kbd>h</kbd> <kbd>j</kbd> <kbd>k</kbd> <kbd>l</kbd></td><td>Move inside copy mode; <kbd>Ctrl-u</kbd>/<kbd>Ctrl-d</kbd> move by half pages.</td></tr>
<tr><td><kbd>/</kbd> then text</td><td>Search backward through pane history; <kbd>n</kbd> repeats.</td></tr>
<tr><td><kbd>v</kbd></td><td>Begin selection.</td></tr>
<tr><td><kbd>y</kbd> or <kbd>Enter</kbd></td><td>Copy selection and exit through tmux/OSC52.</td></tr>
<tr><td><kbd>q</kbd></td><td>Exit without copying.</td></tr>
</tbody>
</table></div>
<p>Tmux keeps up to 100,000 lines per pane in memory. Copy mode deliberately controls the external clipboard; pane applications cannot silently set it through tmux. Clear copied credentials after use.</p>
</section>
<sectionid="recovery"data-search-itemdata-search="recover frozen nested tmux kill server persistence troubleshooting terminal colors">
<h2>Recovery and troubleshooting</h2>
<ulclass="checklist">
<li>If keystrokes appear in several panes, toggle prefix + <kbd>Ctrl-s</kbd>; synchronized panes are probably on.</li>
<li>If a pane is zoomed, press prefix + <kbd>z</kbd>.</li>
<li>If a session already exists, run <code>htb-session</code> instead of creating another one manually.</li>
<li>Inspect config messages with <code>tmux show-messages</code>; validate the active terminal with <code>tmux display -p '#{client_termname}'</code>.</li>
<li>Use <code>tmux kill-session -t htb-name</code> only after saving work. Avoid <code>tmux kill-server</code> unless you intend to terminate every session.</li>
<li>Put personal settings in <code>~/.config/tmux/local.conf</code>; it is loaded quietly after the managed config.</li>
</ul>
</section>
<pclass="empty-state"data-empty-statehidden>No binding or section matches that filter. Press <kbd>Esc</kbd> to reset.</p>
<navclass="page-nav"aria-label="Adjacent pages"><ahref="index.html">← Setup guide</a><ahref="pe.html">pe command center →</a></nav>
</main>
<asideclass="toc"aria-label="On this page"><strong>On this page</strong>
<ul><li><ahref="#model">Session model</a></li><li><ahref="#prefix">Prefix</a></li><li><ahref="#panes">Panes</a></li><li><ahref="#windows">Windows</a></li><li><ahref="#htb-bindings">HTB bindings</a></li><li><ahref="#copy">Copy mode</a></li><li><ahref="#recovery">Recovery</a></li></ul>
</aside>
</div>
<footerclass="site-footer"><strong>VOIDWALKER // TMUX</strong><br>Detach preserves memory · persistence to disk is deliberately off</footer>
</body>
</html>