Zellij is a terminal workspace tool that lets you run multiple terminal sessions in one window. You can split the terminal into different panes and work on multiple tasks at the same time. It also supports tabs for keeping different tasks organized. You can resize panes, switch between them, and manage your terminal using keyboard shortcuts. Zellij is a useful tool for making terminal work easier and more organized in Termux.
Here’s what you can do with Zellij in Termux:
- Create multiple terminal panes.
- Split the terminal horizontally or vertically.
- Create and manage tabs.
- Switch between panes and tabs.
- Resize terminal panes.
- Run different commands at the same time.
- Keep terminal sessions organized.
- Use keyboard shortcuts for quick navigation.
Install Zellij in Termux
Below is the command to install Zellij in Termux, just copy and run the command in your Termux.
First, update your Termux packages:
pkg updateNow install Zellij:
pkg install zellijAfter installation, check the version:
zellij --versionStart Zellij:
zellijZellij will open a new terminal workspace.
Navigation & Shortcuts
Zellij uses a Ctrl + p style shortcut system called modes. Some useful shortcuts are:
Ctrl + p— Pane modeCtrl + t— Tab modeCtrl + n— Resize modeCtrl + h— Move focus leftCtrl + l— Move focus rightCtrl + j— Move focus downCtrl + k— Move focus upCtrl + o— Session modeCtrl + s— Scroll modeCtrl + g— Lock modeCtrl + q— Quit Zellij
In Pane mode:
n— Create a new paned— Split the pane downr— Split the pane rightx— Close the current panef— Toggle fullscreenw— Toggle pane frames
In Tab mode:
n— Create a new tabx— Close the current tabh— Move to the previous tabl— Move to the next tab1,2,3… — Switch to a tab by number
You can press Esc to return from a mode.
Usage Commands
You can use the following zellij commands to start sessions, manage existing sessions, and check available options.
Start Zellij:
zellijStart a new session with a name:
zellij --session mysessionList available sessions:
zellij list-sessionsYou can also use:
zellij lsAttach to an existing session:
zellij attach mysessionOr use:
zellij a mysessionCreate a new session:
zellij attach --create mysessionCreate a new session in the background:
zellij attach --create-background mysessionKill a session:
zellij kill-session mysessionKill all sessions:
zellij kill-all-sessionsList Zellij commands:
zellij --helpShow the installed version:
zellij --versionYou can also check the manual:
man zellijThese commands are useful for creating, joining, and managing Zellij sessions from your Termux terminal.
End Note
Zellij is a useful tool for keeping your Termux work organized. You can use panes, tabs, and sessions to run multiple tasks in the same terminal. Try its shortcuts and find the setup that works best for you.

