2.7 KiB
2.7 KiB
- Installing tmux
sudo apt install -y tmux* will be different based on your Linux distro - Built in Help menu for all tmux commands
ctrl+b+?qto quit - Manage Tmux Sessions
- Start a new tmux session
tmuxtmux new -s <session-name> - Rename the current tmux Session
ctrl+b+$* Retype session name and save with the enter-key - Swap between different sessions within the current session
ctrl+b+s* Arrow key up/down and select session with the enter-key - Detach and Attach to a active tmux session without closing it
- Detach from the current tmux session
ctrl+b+d - Attach to a active tmux session
tmux atmux a -t <tmux-session-name>
- Double check for any active tmux sessions
tmux lstmux list-sessions
- Detach from the current tmux session
- Start a new tmux session
- Manage Tmux Windows
- Swap between tmux windows
ctrl+b+n0rctrl+b+pctrl+b+w* Arrow key up/down and select tmux window with the enter-key- Swap between the <2> last used tmux windows
ctrl+b+l
- Swap between the <2> last used tmux windows
- Rename the currently selected tmux window
ctrl+b+,* Retype name and save with the enter-key
- Swap between tmux windows
- Manage Tmux Panes
- Split tmux panes Horizontally
ctrl+b+" - Split tmux panes Vertically
ctrl+b+% - Detach a tmux pane into its own tmux window
ctrl+b+! - Zoom into a tmux pane without spliting it into its own window
ctrl+b+zctrl+b+z* "Same command again to undo the zoom in" - Move between different tmux panes in the same tmux window
- With Arrow Keys
ctrl+b* Move to the pane you want to select/use with the arrow keys - Between the 2 last used tmux panes
ctrl+b+; - cycle between all tmux panes
ctrl+b+o - Using the q -> pane number method
ctrl+b+q- select the pane by pressing the number of that window
- With Arrow Keys
- Split tmux panes Horizontally
- Grep/Search for Text up or down the page
- Search
<Up>the page- Enter Scroll Mode
ctrl+b+[ - Search Up the page
ctrl+r* Doctrl+ragain to keep searching up the page * Go back into Scroll mode next to the text you found in grep/search mode without going to back to the bottomEnter-Key
- Enter Scroll Mode
- Search
<Down>the page- Enter Scroll Mode
ctrl+b+[ - Search Down the page
ctrl+s* Doctrl+sagain to keep searching down the page * Go back into Scroll mode next to the text you found in grep/search mode without going to back to the bottomEnter-Key
- Enter Scroll Mode
- Search
- Copy and Paste walls of text in tmux to the tmux buffer
- Enter Copy/Scroll Mode
ctrl+b+[ - Enable highlighting
ctrl+spacebar - Copy highlighted text to tmux clipboard
alt+w - Paste what is copied to the tmux clip board
ctrl+b+] - Extra (check what is copied to the tmux clipboard before pasting)
ctrl+b+shift+#qto quit
- Enter Copy/Scroll Mode