Last active
January 25, 2019 08:09
-
-
Save sys0dm1n/ed982b3c35e3bbb5155ed13fe8506111 to your computer and use it in GitHub Desktop.
Revisions
-
sys0dm1n revised this gist
Jan 25, 2019 . 1 changed file with 14 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -42,6 +42,20 @@ Sessions, like windows, are numbered beginning from 0. If you forgot which sessi tmux list-sessions Enable synchronize-panes: ctrl+b then shift :set synchronize-panes on To disable synchronization: ctrl+b then set synchronize-panes off A list of all command keys is accessible with: Ctrl-b ? -
sys0dm1n created this gist
Jan 25, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,47 @@ To begin a new tmux session: tmux To split into two panes: Ctrl-b % To split the pane horizontally: Ctrl-b " To switch to the next pane (panes are numbered left-to-right, top-down): Ctrl-b o To create a new window: Ctrl-b c tmux will switch to the new window automatically. You can see the new window indicated in the status-line. Windows are numbered from 0, so our new window is number 1. Now you can create panes and treat this window like we did before. We can even create another window. Our three windows are numbered 0, 1, and 2. To move to the next window in the index: Ctrl-b n To move backwards in the index: Ctrl-b p To detach from a session: Ctrl-b d To re-attach to a session: tmux attach -t [session name] Sessions, like windows, are numbered beginning from 0. If you forgot which session you wanted to attach to, you can view active sessions: tmux list-sessions A list of all command keys is accessible with: Ctrl-b ?