Note: <PrefixKey>
by default is Ctrl
+ B
Creating Tmux Sessions and Windows
tmux new -s Example | Create a new tmux session titled “Example” |
<PrefixKey> + C | Create a new window within the session |
<PrefixKey> + Number | Take you to your different windows. Windows are identified by the banner down below. |
<PrefixKey> + , | Rename the current Window. |
<PrefixKey> + D | Detach your tmux session from the terminal window. |
tmux attach-session -t Example | Reattach to a session titled “Example” |
Window Splitting
<PrefixKey> + % | Vertical Split |
<PrefixKey> + " | Horizontal Split |
<PrefixKey> + <ArrowKey> | Move around between your panes |
<PrefixKey> + Z | Zoom in and fill out pane you’ve got selected. Do it a 2nd time to zoom out. |
<PrefixKey> + Hold Ctrl + <ArrowKey> | Resizes the pane |
<PrefixKey> + { | Move pane to the left |
<PrefixKey> + } | Move pane to the right |
<PrefixKey> + <SPACE> | Toggle shuffling the panes |
Helpful Command Line Tricks
Ctrl + A | Go to beginning of line |
Ctrl + E | Go to end of line |
Ctrl + <ArrowKey> | Move word by word in the line |
Alt + . | This will autofill the last word you used from this position in the previous command. |
Ctrl + R | Recursively search through your command history. |
Navigating the Terminal
<PrefixKey> + [ | Enter Edit Mode. |
While in Edit Mode: q | This will exit edit mode. |
While in Edit Mode: Ctrl + <ArrowKey> | This will allow you to scroll. |
While in Edit Mode: <ArrowKey> | Move around the terminal window. |
Like this:
Like Loading...
Related