# Tmux Tips tmux -u if graphical line drawing is wrong ## Command Tips C-B t show current time C-B s lists current sessions C-B : new -s "session name" to create new session C-B & destroy window C-B % divide window into two vertical panes C-B " divide window into two horizontal panes C-B z toggle current pane to full window size C-B arrow move around panes C-B M1-5 select preset layout 1-5 C-B space select next preset layout C-B C-left resize pane left by one character cell C-B C-right resize pane right by one character cell C-B C-up resize pane up by one character cell C-B C-down resize pane down by one character cell C-B M-left, right, up down - as above by 5 character cells C-B x close a pane C-B D list active clients (use arrow key to select session to detach) ## Copy and Paste 1. Entry copy mode C-B [ (q to exit copy mode) 2. Move to the start / end of the line you want to copy (use vim navigation) 3. C-space to commence marking text to copy 4. Press enter to copy text into tmux buffer (mention of Alt-W in one instruction I read) 5. Move the cursor to the appropriate pane / window 6. Paste with C-B ]