Linux command
zellij 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start a new session
zellij
Start a named session
zellij -s [session_name]
List existing sessions
zellij list-sessions
Attach to existing session
zellij attach [session_name]
Run with specific layout
zellij --layout [layout_name]
Detach from session (keybinding)
Ctrl+o d
说明
zellij is a terminal workspace manager (multiplexer) similar to tmux and screen, but with a modern approach. It provides panes, tabs, and sessions with a discoverable keyboard-driven interface. Key features include floating panes, a plugin system (WebAssembly-based), built-in layouts for common workflows, and a status bar showing available keybindings. Default keybindings use modes accessed via Ctrl+key: Ctrl+p for pane mode, Ctrl+t for tab mode, Ctrl+n for resize mode, Ctrl+h for move mode, Ctrl+s for scroll mode, Ctrl+o for session mode. Configuration is in ~/.config/zellij/config.kdl using KDL format. Layouts define pane arrangements for reusable workspace setups.
参数
- -s, --session _name_
- Name for the new session
- --layout _layout_
- Use specified layout file
- -l, --layout-path _path_
- Path to layout file
- -c, --config _file_
- Path to config file
- --config-dir _dir_
- Path to config directory
- -n, --new-session-with-layout _layout_
- Create new session with layout
FAQ
What is the zellij command used for?
zellij is a terminal workspace manager (multiplexer) similar to tmux and screen, but with a modern approach. It provides panes, tabs, and sessions with a discoverable keyboard-driven interface. Key features include floating panes, a plugin system (WebAssembly-based), built-in layouts for common workflows, and a status bar showing available keybindings. Default keybindings use modes accessed via Ctrl+key: Ctrl+p for pane mode, Ctrl+t for tab mode, Ctrl+n for resize mode, Ctrl+h for move mode, Ctrl+s for scroll mode, Ctrl+o for session mode. Configuration is in ~/.config/zellij/config.kdl using KDL format. Layouts define pane arrangements for reusable workspace setups.
How do I run a basic zellij example?
Run `zellij` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -s, --session _name_ do in zellij?
Name for the new session