How to terminate a window in tmux?

Dmitry picture Dmitry · Oct 14, 2011 · Viewed 181.3k times · Source

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

Answer

Kent picture Kent · Oct 14, 2011

try Prefix + &

if you have

bind q killp

in your .tmux.conf, you can press Prefix + q to kill the window too, only if there is only one panel in that window.

if you have multiple panes and want to kill the whole window at once use killw instead of killp in your config.

the default of Prefix above is Ctrl+b, so to terminate window by default you can use Ctrl+b &