307 words, 1 mins
tmux是类似 screen 的应用,可以保存运行环境,可以在退出终端后再次挂载
install
mac
brew install tmux
ubuntu
sudo apt-get install tmux
usage
create new session with name
tmux new -s [session-name]
list all sessions
tmux ls
attach
tmux attach -t [session-name]
detach, can attach again
Ctrl-b d
split screen vertically
Ctrl-b %
split screen horizontally
Ctrl-b "
switch between panes
Ctrl-b o