How to Install and Use tmux on Linux: A Beginner's Guide
HardReset.InfoJanuary 1, 20269 min30 views
1 connectionsΒ·2 entities in this videoβIntroduction to tmux
- π‘ tmux is a terminal multiplexer that allows you to run multiple terminal sessions within a single window.
- π― This is achieved by splitting the screen into panes, enabling concurrent command execution and background task management.
Installing tmux
- π» To install tmux on Linux, open your terminal and execute the command
sudo apt install tmux. - π You will be prompted to enter your password and confirm the installation by typing 'yes'.
Basic tmux Usage
- π Start a tmux session by typing
tmuxin the terminal. - π The status bar at the bottom indicates the current window number (starting from 0).
- π The prefix key is
Ctrl + B. This must be pressed before most tmux commands.
Managing Windows and Panes
- β Create a new window by pressing
Ctrl + Bfollowed byC. - πͺ List all windows with
Ctrl + BthenW, and switch between them using arrow keys or by number (Ctrl + B+ window number). - π Split the current pane vertically using
Ctrl + Band%(Shift + 5). - βοΈ Split the current pane horizontally using
Ctrl + Band the sign next to Enter. - β¬οΈβ¬οΈβοΈβ‘οΈ Navigate between split panes using
Ctrl + Bfollowed by the arrow keys.
Sessions: Detaching, Attaching, and Naming
- π€ Detach from a running tmux session by pressing
Ctrl + BthenD. - π List all active sessions with
tmux ls. - π Reattach to a session using
tmux attach -t <session_name_or_number>. - π·οΈ Create a named session for easier management with
tmux new -s <session_name>. - π Reattaching to a named session is done via
tmux attach -t <session_name>.
Knowledge graph2 entities Β· 1 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
2 entities
Chapters4 moments
Key Moments
Transcript33 segments
Full Transcript
Topics11 themes
Whatβs Discussed
tmuxLinuxTerminal MultiplexerInstall tmuxtmux commandstmux sessionstmux windowstmux panesnamed sessionsdetach sessionattach session
Smart Objects2 Β· 1 links
ProductsΒ· 2