Linux Terminal Command: zellij

The zellij command is an essential tool in Process & Job Control. In this tutorial, we will explore what zellij does, look at everyday examples, and cover advanced options to supercharge your command-line workflow.


Concept & Explanation

zellij is a modern terminal multiplexer written in Rust. It offers out-of-the-box window splitting, mouse controls, layouts (KDL format), and session resurrection.


Common Options & Syntax

zellij [options] [arguments]

Here are the most common flags used with zellij:


1. Interactive Example (Simple)

Here is how most people run the command:

# Example
zellij

What it does: Launches a zellij session with default status bar and layouts.


2. Power-User Example (Advanced)

For scripting and advanced diagnostics, use this configuration:

# Advanced
zellij attach dev-session

What it does: Reconnects to the active session named ‘dev-session’.


⚙️ Warning & Common Pitfalls

[!WARNING] zellij keybindings can clash with editors like Vim. You can switch to ‘Locked’ mode (Ctrl+g) to pass all keyboard inputs directly to your editor.


Here are some related posts on cli_tty1 you might want to check out: