In tmux, tabs are called "windows." To create a new tab/window, press Ctrl+b
followed by c
. You can also use the command tmux new-window
or its shorthand tmux neww
.
In tmux terminology, what many terminal applications call "tabs" are referred to as "windows." Windows in tmux behave similarly to tabs in a web browser, allowing you to have multiple terminal views within a single tmux session.
Ctrl+b c
- Create a new windowCtrl+b :
then type new-window -n name
- Create window with specified nametmux new-window -n name
- From outside tmuxtmux new-window -c /path/to/directory
- Start in specific directorytmux new-window "top"
- Run command in new windowtmux new-window -n monitor "htop"
- Named window with commandCtrl+b 0-9
- Switch to window 0-9Ctrl+b n
- Next windowCtrl+b p
- Previous windowCtrl+b w
- List windows (interactive selection)Ctrl+b f
- Find window by nameCtrl+b l
- Last active window By default, new windows start in the directory where tmux was originally started. To make new windows open in the current directory, add this to your ~/.tmux.conf
:
bind c new-window -c "#{pane_current_path}"
The tmux status bar shows your open windows/tabs. The current window is highlighted. To rename a window, press Ctrl+b ,
(comma).