Published on

Create a Tmux Session

Create a Tmux Session

Tmux is one of the most useful tool when it comes to using a linux terminal.

Tmux is a terminal multiplexer, it allows a user to access multiple terminals (or windows), each running a separate program, while providing a single screen to work on. Tmux is useful for running more than one command-line program at the same time, increasing productivity and the way you work.

Let's look at how to create a new tmux session.

Create a new tmux session

Creating a new tmux session is easy, you just have to run the following command-

$ tmux

or using the tmux new command

$ tmux new

or using the tmux new-session command

$ tmux new-session

If you are inside a tmux session already, then you can also create a new session using-

: new

Let's say your prefix is Ctrl-B, then you can do-

: new

Create a tmux session with a name

Let's give your tmux session a unique name, so that you will be able to identify it.

tmux new -s session_name


tmux new -s myaws

You can also create a tmux session within a tmux session, which will help you create a new session without quitting the existing session.

I hope this tutorial for creating a new tmux session was useful. You can also check out the complete tmux cheatsheet of keyboard shortcuts and mouse shortcuts.