zellij vs tmux: The Terminal Multiplexer Cage Match
tmux is the grizzled veteran who's been keeping SSH sessions alive since 2007. zellij is the new kid who shows you every keybinding at the bottom of the screen. Who wins zellij vs tmux? It depends where you're fighting.
Tux Harlow
4 min read
Ladies and gentlemen, in this corner, weighing in at "already installed on your server": tmux, the veteran. He's been keeping SSH sessions alive since 2007. He's seen things. He doesn't talk about the Ctrl-b years.
And in this corner, written in Rust and wearing a status bar like a championship belt: zellij, the challenger.
Welcome to zellij vs tmux. I watched them go twelve rounds on my laptop so you don't have to. If you're brand new to multiplexers, read our tmux post first. It explains why you want one: a dropped SSH connection stops taking your work with it.
Round 1: First five minutes
tmux opens a plain green bar at the bottom and then waits, like a butler who won't say anything until spoken to. Everything starts with the prefix key, Ctrl-b, followed by another key. Ctrl-b % splits the screen side by side, Ctrl-b " splits it top and bottom, and Ctrl-b d detaches. You learn these from a cheat sheet, or from a friend, or from crying.
zellij opens with the keys printed at the bottom of the screen. Press Ctrl-p and the bar changes to show pane commands. Press Ctrl-t for tabs, Ctrl-s to scroll, Ctrl-o for sessions. It's like the game showing you the button prompts, and the first time you see it, you feel a little betrayed by every tool you've ever used before.
Round to zellij. It isn't close. This is like when I tried to assemble a bookshelf with instructions written entirely in pictures of a smiling man pointing. Step 4: the smiling man is holding a screw I do not have. tmux is the smiling man.
Round 2: The key clash
Here's zellij's problem. It grabs keys like Ctrl-p, Ctrl-t, Ctrl-n and Ctrl-o, which other programs also want. Vim uses Ctrl-o. Your shell uses Ctrl-p for history. You'll eventually press something and zellij will eat it like a golden retriever catching a sandwich that wasn't thrown to it.
The fix is locked mode: Ctrl-g hands every key to the app inside, and Ctrl-g again brings zellij back. You can also rebind everything in its config file. tmux mostly dodges this, because almost nothing else uses Ctrl-b.
Round to tmux. Being old-fashioned has perks.
Round 3: Layouts and floating panes
zellij has floating panes: a terminal that hovers over your other panes like a little window, perfect for a quick command. Press Ctrl-p then w to toggle it. It also has layout files (written in a format called KDL) that open your whole workspace in one go: editor on the left, logs on the right, a shell at the bottom.
tmux can do layouts too, but usually through scripts or a plugin like tmuxinator. It has popups in recent versions, but floating panes are part of zellij's furniture.
Round to zellij. Floating panes are just fun.
Round 4: Availability
tmux is in every distro's repos and already installed on plenty of servers. Rescue system? Ancient CentOS box nobody has touched since the Obama administration? There's a decent chance tmux is there.
zellij is newer. It's packaged by many distros now, and it's a single binary you can download, but it's rarely already sitting on a box you've just logged into.
Round to tmux, by knockout.
Round 5: Extending it
tmux has decades of plugins, config files on every dotfiles repo on Earth, and a command language you can script to do almost anything. Old, mysterious and powerful, like a wizard who's also your landlord.
zellij has plugins built with WebAssembly, a tidy config, and a growing community. Recent versions can also bring a session back after the machine restarts, which tmux needs a plugin for.
Round: draw. Different philosophies, both strong.
The scorecard
| tmux | zellij | |
|---|---|---|
| Learning curve | Cheat sheet required | Keys on screen |
| Clashes with other apps | Rarely | Sometimes (locked mode helps) |
| Floating panes | Popups only | Built in |
| Layouts | Scripts or plugins | Built in |
| Already on servers | Often | Rarely |
| Scripting | Legendary | Growing |
The verdict
On servers, use tmux. It's there, it's stable, and Ctrl-b works the same everywhere from your homelab to that box in the closet nobody admits to owning.
On your own machine, try zellij, especially if tmux never stuck for you. The on-screen keys mean you can be productive in ten minutes instead of a weekend.
Either way, use one. The real loser of this match is the person who keeps running long upgrades in a bare SSH session and losing them to a coffee-shop Wi-Fi blip. Don't be that person. That person and I have the same face, and we've both learned our lesson.
Linux
More like this
Linux
entr and watch: Make Your Terminal Rerun Things So You Don't Have To
Save, switch window, press up, press Enter, squint. Save, switch window, press up... Stop. entr reruns your command whenever a file changes, and watch reruns it on a timer. Two tiny tools, a thousand saved keystrokes.
Linux
ripgrep: grep, But It Drank Three Espressos and Read Your .gitignore
grep is a legend. It's also happy to search all 80,000 files in node_modules while you wait. ripgrep searches only what matters, very quickly, with sensible defaults. The flags worth knowing, and when old grep still wins.
Linux
Linux Terminal Toys (and the Surprisingly Useful Tools Hiding Among Them)
A talking cow, a train that punishes typos, the Matrix in your terminal, and hidden among them, six genuinely useful tools you'll keep long after the novelty wears off. A toy box for Linux nerds.