How to terminate a window in tmux?

前端 未结 10 1371
你的背包
你的背包 2021-01-29 17:31

How to terminate a window in tmux? Like the Ctrlak shortcut in screen with Ctrla being the prefix.

相关标签:
10条回答
  • 2021-01-29 18:07

    Lot's of different ways to do this, but my favorite is simply typing 'exit' on the bash prompt.

    0 讨论(0)
  • 2021-01-29 18:14

    Generally:

    tmux kill-window -t window-number
    

    So for example, if you are in window 1 and you want to kill window 9:

    tmux kill-window -t 9
    
    0 讨论(0)
  • 2021-01-29 18:17

    By default
    <Prefix> & for killing a window
    <Prefix> x for killing a pane
    And you can add config info

    vi ~/.tmux.conf
    bind-key X kill-session
    

    then
    <Prefix> X for killing a session

    0 讨论(0)
  • 2021-01-29 18:18

    ctrl + d kills a window in linux terminal, also works in tmux.

    This is kind of a approach.

    0 讨论(0)
提交回复
热议问题