> ## Content Index
> Fetch the complete content index at: https://linuxhandbook.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# Chapter 2: Get Tmux Running
- URL: https://linuxhandbook.com/courses/tmux/get-tmux/
- Published: 2026-09-04T09:58:26.000Z
- Updated: 2026-09-04T09:58:26.000Z
- Author: Yash Kiran Patil
- Tags: Tmux, #group-basics, #lessons-col, #lesson-duration-4m

In the previous chapter, we looked at the problem tmux solves and why persistent terminal sessions are useful, especially when working over SSH.

Now it's time to actually use tmux.

In this chapter, we'll install tmux on your system, verify that everything is working, start your first tmux session, and understand what you see when tmux starts.

We won't configure anything yet. For now, the goal is simple:

> **Get tmux running and get comfortable inside your first session.**

Once that works, we'll start learning how to control tmux in the next chapter.

## Installing Tmux

The good news is that tmux is available through the package manager on most Linux distributions, so installation is usually just one command.

On Ubuntu or Debian-based systems, run:

```bash
sudo apt update
sudo apt install tmux
```

The first command refreshes your package information, and the second installs tmux.

On Arch:

```
sudo pacman -S tmux
```

If you're using another distribution, use the command for your system from the examples above. Verify the Installation before starting tmux: 

```bash
tmux -V
```

![tmux version](https://linuxhandbook.com/content/images/2026/08/image-4.png)

tmux version

## Start Tmux

Now comes the fun part. Type `tmux` in your terminal and that's it, you have just started your first tmux session. 

At first glance, almost nothing may seem different. Your shell still works normally, and you can still run Linux commands just like before.

But look at the **bottom of your terminal**. You should now see a tmux status bar. A typical tmux screen looks roughly like this:

![Tmux first session](https://linuxhandbook.com/content/images/2026/08/Screencastfrom2026-08-1918-49-13-ezgif.com-video-to-gif-converter.gif)

Tmux first session

Let's break down the status bar without going too deep yet. You may see something similar to:

```
[0] 1:bash*
```

The `1` represents the first window. The `bash` part tells you the shell running inside that window. The `*` marks the active window.

The Linux commands behave exactly as they normally would. Tmux isn't replacing your shell or changing how Linux commands work. It is managing the terminal environment around your shell.

![persistent session and multiple panes of Tmux](https://linuxhandbook.com/content/images/2026/08/image-5.png)

persistent session and multiple panes of Tmux

Type `exit` and press Enter. The tmux status bar disappears, and you return to your normal terminal. Later, you'll learn another operation called **`detach`**.

So far, we've only started tmux and observed what it looks like. But you may already be wondering **how do I actually control tmux?** That's what we'll answer next.

In the next chapter, we'll learn the **tmux prefix key** \- the small but important concept that lets you send commands to tmux without accidentally sending them to your shell.

Once you understand the prefix key, the rest of tmux starts to feel much more predictable.