Hey folks! If you’re like me and often have multiple terminals open for various tasks, then tmux is a tool you’ll want to get familiar with. One of the key features of tmux is the ability to create new windows within a single terminal session. This can dramatically improve your workflow and reduce clutter on your desktop. In this post, I’m going to walk you through the process of creating a new tmux window. So, strap in, and let’s dive into the world of tmux!
If Tmux is new territory for you, the basics of Tmux is your roadmap. For the Tmux experts, let’s hit the fast-forward button!
Let’s look at how to create a new tmux window.
Create a new tmux window
Creating a new tmux window inside a session is easy, you just have to use the following keyboard shortcut-
Prefix + c
By default the prefix is Ctrl-B
, so to switch to previous window you can run the following command-
Ctrl-B + c
Note: You have to be inside a session. If you are outside a session, then attach to a session that you want to open, and then run the above keyboard shortcuts.
You can also rename the window, which will help you to identify windows by human-readable names.
And there you have it! You now know how to create a new tmux window and keep your terminal sessions clean and organized. It’s one of those things that seems small, but once you start using it, you’ll wonder how you ever managed without it. I hope this guide has been helpful, and that you’re well on your way to becoming a tmux master. Stay tuned for more tips and tricks on how to get the most out of tmux!
You can also check out the complete tmux cheatsheet of keyboard shortcuts and mouse shortcuts.