How to create a new window in tmux

New window (like a browser tab), switches to it:

keysprefix + c

Open in the current directory

By default new windows start in the directory where the session was created. Most people want the directory they're in now:

~/.tmux.conf
bind c new-window -c "#{pane_current_path}"

Name it up front

new-window -n logs creates it pre-named. From a shell: tmux neww -n logs 'journalctl -f' — starts the command directly, and the window closes when it exits.

Related

Verified against tmux 3.6 · updated July 2026 · back to the full cheat sheet