A terminal multiplexer lets you run several shells in one window, split the screen into panes and keep sessions alive after you disconnect. For years that meant tmux. Now Zellij, a newer multiplexer written in Rust, offers the same core features with a friendlier face. Here is how tmux vs Zellij compares in daily use and which one to pick.
What a multiplexer gives you
- Persistent sessions: close the terminal or lose your SSH connection and everything keeps running.
- Panes and tabs (windows in tmux) inside one terminal.
- Detach and reattach from another machine.
- Scriptable layouts so a project opens exactly the way you like.
Install both
# macOS
brew install tmux zellij
# Debian / Ubuntu
sudo apt install tmux
# Zellij from source or crates.io
cargo install --locked zellij
tmux basics
tmux is controlled by a prefix key, Ctrl-b by default, followed by a command key. It has been around since 2007 and is packaged for almost every system.
tmux new -s work # start a named session
tmux ls # list sessions
tmux attach -t work # reattach
# inside tmux (after Ctrl-b):
% split left/right
" split top/bottom
c new window
d detach
Configuration lives in ~/.tmux.conf. A common first edit is moving the prefix to Ctrl-a, turning on the mouse and starting window numbers at 1. The plugin manager TPM adds extras such as session saving.
Zellij basics
Zellij shows a status bar listing the available keys and the current mode, so you can use it without memorising anything. Pressing Ctrl-p enters pane mode, Ctrl-t tab mode, and Ctrl-o session mode, where you can detach.
zellij # new session
zellij attach work # attach to a session by name
zellij ls # list sessions
Settings live in ~/.config/zellij/config.kdl. Layouts are written in KDL and can be launched by name. Zellij also supports floating panes, and sessions can be resurrected after a reboot because it saves their layout.
Side by side
- Learning curve: Zellij wins. The on-screen key hints remove most of the guessing. tmux needs a cheat sheet.
- Availability: tmux wins. It is installed or one package away on nearly every server. Zellij is a single binary but is rarely pre-installed.
- Defaults: Zellij works nicely out of the box. A stock tmux feels dated until you add a config.
- Layouts: both are scriptable. Zellij layouts are easier to read, while tmux has years of scripts and tools such as tmuxinator.
- Ecosystem: tmux has more plugins and tutorials. Zellij has a growing plugin system based on WebAssembly.
- Keybinding clashes: Zellij’s default shortcuts can collide with editors and TUI apps. Its locked mode, toggled with
Ctrl-g, passes every key through to the program you are running.
Which one should you use?
- Working on remote servers: learn tmux. It will be there when you SSH into a fresh box.
- Mostly local, on a laptop: try Zellij first. You will be productive in minutes.
- New to multiplexers: start with Zellij, then pick up tmux basics later.
- Already happy with tmux: there is no urgent reason to switch.
Related reading
Your terminal app matters as much as your multiplexer. Our guide to the best terminal emulators for developers in 2026 covers which ones have built-in splits or integrate with tmux, such as iTerm2’s native tmux mode. Once your panes are set up, lazygit is a good tool to leave running in one of them for quick staging, commits and branch work without leaving the terminal.
Nothing stops you using both. Plenty of developers run Zellij on their own machine and tmux on servers, since the ideas are the same: sessions, panes and detaching.

Leave a Reply
You must be logged in to post a comment.