Aller au contenu principal
kitlocal.dev

Aide-mémoire tmux

Exécution locale

Traitement à 100 % dans votre navigateur. Vos entrées et sorties ne quittent jamais votre appareil.

Commandes du multiplexeur de terminal tmux expliquées simplement : sessions, fenêtres, volets scindés, saisie synchronisée, mode copie et scripts sur tmux 3.6.

Comment ça fonctionne

tmux uses a three-level hierarchy: a persistent server holds sessions (projects), each session holds windows (tabs), and each window splits into panes. Detaching leaves the session running in the background so you can reconnect later; inside tmux, most key bindings start with the prefix Ctrl-b followed by one key.

Kit de survie

Les quelques commandes à apprendre en premier.

40 commandes

Raccourcis clavier/Cibler la rechercheJKDéplacer la sélectionCCopier la sélectionFMettre la sélection en favoriEscEffacer la recherche

Manage sessions (shell)

Sessions survive SSH disconnects and terminal restarts. Name every project session so attaching is effortless.

Documentation officielle : tmux sessions
  • Essentiel

    Create and attach to a named tmux session.

    tmux new -s <name>

    Construire la commande

    tmux new -s <name>

    Les valeurs sont insérées exactement telles que saisies. Ajoutez des guillemets vous-même si elles contiennent des espaces ou des caractères spéciaux.

    Quand l'utiliser

    Names the session so you can return to the exact workspace after disconnecting or closing your terminal.

    Décomposition

    new
    alias for new-session
    -s <name>
    session name

    Exemple

    Starts a session named api.

    tmux new -s api

    Fonctionne aussi

    • tmux new-session -s <name>

    Voir aussi

Windows (tabs)

Windows act like full-screen tabs inside a session. Each appears in the bottom status bar.

Documentation officielle : Windows and panes

Split & navigate panes

Split one window into multiple panes to edit code beside logs or a test runner.

Documentation officielle : Pane commands

Scrollback & copy mode

tmux holds its own scrollback buffer per pane. Enter copy mode to scroll, search logs and copy without leaving the keyboard.

Documentation officielle : Copy mode

Commands & configuration

Customize prefix, mouse support and reload ~/.tmux.conf without restarting running sessions.

Documentation officielle : Configuration & options

Essayer dans un outil KitLocal

Glossaire
Prefix
The shortcut pressed before a tmux command key. Default is Ctrl-b (release both keys before pressing the next key).
Session
A named workspace containing one or more windows that stays alive on the tmux server after you detach.
Window
A full-screen view inside a session (similar to a browser tab), numbered starting at 0 by default.
Pane
One rectangular terminal split inside a window, running its own shell.
Copy mode
A scrollback and selection mode entered with Ctrl-b [ so you can scroll up and copy text without a mouse.

Vérifié le 15 nov. 2026 · Vérifié avec la version tmux 3.6

Sources: tmux manual page (man7.org) · tmux GitHub wiki

Remplacez les éléments entre chevrons par vos propres valeurs. Les commandes proviennent de la documentation officielle et les exemples ont été exécutés sur la version indiquée.