This blog is about a quick tutorial about Tmux.
You are welcomed to chat about it and if you like this blog, do not forget to give me a like.
Welcome to see my homepage and contact me
: NicholasYe’s Homepage.
Workflow
- use
tmux
to create a new tmux window - use
Ctrl+b c
to create a new session - use
Ctrl+b ,
to rename session - use
Ctrl+d
to exit session or finally window - use
Ctrl+b d
to detach window - use
tmux a
to attach remaining window
Tutorial
-
create a new pain
Ctrl+b %
: create a split painCtrl+b ←
: switch to left painCtrl+b →
: switch to right pain
Ctrl+b "
: create a vertical painexit
: use exit to close the pain
-
create a new window
Ctrl+b c
: create a new windowCtrl+b {number}
: switch to the {number} windowCtrl+b ,
: rename the window
exit
: close the windowCtrl+b d
: detach from tmux
-
session
tmux ls
: show the working tmuxtmux rename-session -t {name} {new name}
: rename exiting tmux session into new name
tmux attach -t {name}
: attach tmux session (-t means target)tmux new -s {name}
: create new tmux with nametmux kill-session -t {name}
: kill tmux session with name
-
overview
Ctrl+b w
: show the overview of the current window
Please clearly mark the source of the article in the process of reproducing it! Respect for originality and intellectual property rights, thanks!