tmux cheat sheet Ctrl+B
Create Session
# tmux
# tmux new -s my-own-session-name
# tmux attach-session -t my-own-session-name
List Sessions
# tmux ls
S: List sessions.
$: Rename current session.
D: Detach current session.
Ctrl+B, and then ?: Help page in tmux.
C: Create a new window.
,: Rename the current window.
W: List the windows.
N: Move to the next window.
P: Move to the previous window.
0 to 9: Move to the window number specified.
%: Create a horizontal split.
“: Create a vertical split.
H or Left Arrow: Move to the pane on the left.
I or Right Arrow: Move to the pane on the right.
J or Down Arrow: Move to the pane below.
K or Up Arrow: Move to the pane above.
Q: Briefly show pane numbers.
O: Move through panes in order. Each press takes you to the next, until you loop through all of them.
}: Swap the position of the current pane with the next.
{: Swap the position of the current pane with the previous.
X: Close the current pane.
Enter Scroll Mode:
Press Ctrl + b to initiate the tmux command prompt.
Immediately press the [ key. This activates scroll mode, allowing you to navigate through the terminal output.
Navigate Through the Output:
Use the Up Arrow and Down Arrow keys to scroll through the output line by line.
Utilize the Page Up and Page Down keys to scroll by entire pages of text. This method is especially useful for large outputs.
Exit Scroll Mode:
Once you have finished reviewing, press q to exit scroll mode and return to the regular terminal view.
add settings to tmux.conf
echo set -g history-limit 10000 > ~/.tmux.conf
echo "set -g mouse on" >> ~/.tmux.conf