Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
1 result

tmux

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    chraibi authored
    cc4de4ec
    History
    Name Last commit Last update
    .tmuxDir
    .tmux.conf
    README.md
    tmux1.mov
    tmux_screen.png
    Screenshot Demo
    drawing Demo

    Installation

    Clone project and copy files to HOME

    mkdir tmp_tmux
    git clone https://gitlab.version.fz-juelich.de/chraibi1/tmux.git tmp_tmux
    cp -r tmp_tmux/* ~
    rm -r tmp_tmux
    tmux

    Nomenclatur

    • Window: like tabs
    • Pane: a window can be splited in sub-windows
    • Ctrl: Control key
    • Alt: Alt key
    • Ctrl-a: type a while holding Ctrl

    Sessions

    from shell prompt

    • tmux ls: list sessions
    • tmux attach -t <num> or <name>: attach to session num or name
    • tmux rename-session [-t current-name] [new-name]

    Keystrokes

    General

    • Ctrl-a c: new window
    • Ctrl-a ,: change name of the window
    • Ctrl-a v: split vertically
    • Ctrl-a h: split horizontally
    • Ctrl-a z: full screen on selected pane
    • Ctrl-a x: close windows (answer question with y)
    • Ctrl-a [: enter text-mode to navigate the window (q to exit)
    • Ctrl-a r: refresh tmux after changing ~/.tmux.conf

    Navigation windows

    • Ctrl-p: previous window
    • Ctrl-n: next window
    • Ctrl-arrow: navigate panes (up, down, left, right)
    • Ctrl-number: select windo with number

    Copy text

    • Enter text-mode with Ctrl-a [
    • Ctrl-space
    • move with arrows to mark text
    • Alt-w: copy
    • Ctrl-a ]: paste

    Search

    • Enter text mode with Ctrl-[
    • Ctrl-s: searching forwards
    • Ctrl-r: searching backwards

    Attach / Detach sessions

    • Ctrl-a d: detach session
    • To attach again to a detached session start tmux in a terminal as tmux attach