Working with Command Mode

So far, we’ve used key combinations to create windows and panes, but those keybindings are actually just shortcuts for tmux commands with some preset options. We can execute tmux commands two ways: from the terminal itself or from the command area in the tmux status line. You’ll learn about using tmux commands from the terminal in Chapter 3, Scripting Customized tmux Environments, but for now, let’s explore tmux’s Command mode by using it to create some new windows and panes in our workspace.

To enter Command mode, press Prefix : (the colon) from within a running tmux session. The status line changes color and we get a prompt that indicates that we can type our command. Create a new window by using the new-window ...

Get tmux 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.