Ir al contenido principal
kitlocal.dev

Chuleta de tmux

Ejecución local

Procesado al 100 % en tu navegador. Las entradas y salidas nunca salen de tu dispositivo.

Comandos del multiplexor de terminal tmux en lenguaje claro: sesiones, ventanas, paneles divididos, entrada sincronizada, modo copia y scripting en tmux 3.6.

Cómo funciona

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 supervivencia

Los comandos clave que conviene aprender primero.

40 comandos

Atajos de teclado/Enfocar búsquedaJKMover selecciónCCopiar seleccionadoFMarcar seleccionadoEscBorrar búsqueda

Manage sessions (shell)

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

Documentación oficial: tmux sessions
  • Esencial

    Create and attach to a named tmux session.

    tmux new -s <name>

    Construye el comando

    tmux new -s <name>

    Los valores se insertan exactamente como los escribes. Ponlos entre comillas si contienen espacios o caracteres especiales.

    Cuándo usarlo

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

    Desglose

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

    Ejemplo

    Starts a session named api.

    tmux new -s api

    También funciona

    • tmux new-session -s <name>

    Véase también

Windows (tabs)

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

Documentación oficial: Windows and panes

Split & navigate panes

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

Documentación oficial: 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.

Documentación oficial: Copy mode

Commands & configuration

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

Documentación oficial: Configuration & options

Pruébalo en una herramienta de KitLocal

Glosario
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.

Comprobado el 15 nov 2026 · Comprobado con tmux 3.6

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

Sustituye todo lo que esté entre corchetes angulares por tus propios valores. Los comandos proceden de la documentación oficial y los ejemplos se ejecutaron en la versión indicada.