Maximizing Productivity with tmux: A Guide to Multi-Pane Monitoring with top
Split the Terminal Pane:
Inside
tmux
, you can split the terminal pane either horizontally or vertically. Choose one of the following options:Horizontal split: Press
Ctrl-b
followed by%
.Vertical split: Press
Ctrl-b
followed by"
.
Navigate to the New Pane:
- If you've split horizontally or vertically, navigate to the new pane. You can do this with
Ctrl-b
followed by arrow keys, or by usingCtrl-b
+q
to display pane numbers and then pressing the corresponding number.
- If you've split horizontally or vertically, navigate to the new pane. You can do this with
Run
top
in the New Pane:- In the new pane, simply run the
top
command:
- In the new pane, simply run the
top
- This will display real-time information about system resources.
Navigate Between Panes:
- You can switch between panes using
Ctrl-b
followed by arrow keys or by using theCtrl-b
+q
method mentioned earlier.
- You can switch between panes using
Exit
top
andtmux
:To exit
top
, pressq
.To exit
tmux
, you can detach from the session by pressingCtrl-b
followed byd
.
These steps assume you're starting with a single pane in tmux
and want to open top
in a separate pane. If you already have multiple panes in your tmux
session, you can skip the step of splitting the pane and directly navigate to an empty or desired pane before running top
.