Using Tmux on MacOS
To start Tmux just run the following command:
tmux
You can create a new session using the command below:
tmux new-session -s <your_session_name>
To view available sessions, enter the following command:
tmux list-sessions
Run the command below to detach from your session when you are done:
tmux detach
And to reattach to your Tmux session when you are ready to continue working using the following command:
tmux attach -t <your_session_name>
Here are some of the usual shortcuts to use Tmux:
**–> Ctrl-b ?: **Show all commands
**–> Ctrl+b c: **Create a new window
–> Ctrl-b o: Switch
–> Ctrl+b arrow key: Switch pane
**–> Ctrl+b “: **Split horizontally
–> **Ctrl+b %: **Split vertically
–> Ctrl+b n: Next
–> Ctrl+b p: Previous
网友评论