logo
  • 現在做什麼
  • 關於我

Kalan

文章分類

  • 前端
  • 開發筆記
  • 雜談
  • 年度回顧

快速連結

  • 現在做什麼
  • 關於我
  • 聯絡我
  • 職涯思考🔗

關注我

在福岡生活的開發者,分享軟體開發與日本生活的點點滴滴。

© 2025 Kalan Made with ❤️. All rights reserved.

tmux Shortcut Key Notes

Written byKalanKalanOct 27, 2021
Home/Dev Note
💡

If you have any questions or feedback, pleasefill out this form

Japanese原文

Table of Contents

    This post is translated by ChatGPT and originally written in Mandarin, so there may be some inaccuracies or mistakes.

    I've always had the habit of switching tabs directly through the tab feature of iTerm2. While this approach isn't problematic, ever since I discovered the benefits of using tmux, I've shifted all my terminal operations to it. tmux introduces a few key concepts: session, window, and panel. Each window can contain multiple panels, and each panel can access different sessions, which is incredibly convenient when working with remote servers.

    Its shortcut key philosophy is quite unique, using <C-b> as a prefix for other key combinations. In this article, I’ll document some of the shortcuts I commonly use:

    Function
    tmux new -s nameCreate a new session
    tmux a -t nameWhen the terminal closes, tmux retains the session; you can attach to restore the original session state
    tmux lsList the current sessions
    cCreate window
    &Kill window
    .Name window
    %Vertical split (within the same page)
    "Horizontal split (within the same page)
    xKill panel
    ,Rename panel
    zTemporarily hide other panels
    ← Future Energy Shortage ConcernsChange from prismjs to shiki →

    If you found this article helpful, please consider buying me a coffee ☕ It'll make my ordinary day shine ✨

    ☕Buy me a coffee