How to Fix bash: zellij: command not found in Minimal Linux Distributions

The zellij terminal workspace manager is a modern, feature-rich terminal multiplexer written in Rust that provides a visual status bar, customizable floating panes, and built-in tab layouts out of the box without requiring extensive configuration files. In minimal Linux distributions, container base images, or bare-metal servers, running zellij produces bash: zellij: command not found because the binary is not part of default Linux distributions.

Install zellij via Pre-Compiled Static Binary

The cleanest approach for minimal systems without package manager bloat is installing the official pre-compiled release binary:

# Download latest zellij archive for Linux x86_64
curl -sSL https://github.com/zellij-org/zellij/releases/latest/download/zellij-x86_64-unknown-linux-musl.tar.gz -o /tmp/zellij.tar.gz

# Extract binary directly into system bin
sudo tar -xzf /tmp/zellij.tar.gz -C /usr/local/bin/

# Set executable execution permissions
sudo chmod +x /usr/local/bin/zellij

# Remove temporary archive
rm -f /tmp/zellij.tar.gz

# Verify installation
zellij --version

Install via Linux Distribution Repositories

Modern Linux package managers include zellij in their main repositories:

# On Arch Linux:
sudo pacman -S zellij

# On Alpine Linux (Edge/Testing):
apk add zellij

# On systems with Homebrew:
brew install zellij

Compile and Install via Cargo

If you have Rust and Cargo configured in your development environment:

# Compile and install zellij
cargo install zellij --locked

# Ensure ~/.cargo/bin is exported to PATH
echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.