tmux tutorial

tags: tmux

Install tmux

sudo apt-get install tmux

Windows

建立新的session,

tmux

或自行命名session name

tmux new -s <session name>

在tmux中:

  • Crtl-b c 建立一個新視窗
  • Crtl-b p 上一個視窗
  • Crtl-b n 下一個視窗
  • Crtl-b [ 向上滾動,q退出
  • Crtl-b d 離開session
  • Ctrl-b x 關閉當前視窗

Reconnect session

查看tmux

tmux ls

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

選擇現有tmux的session

tmux attach -t <session name>

Delete session

tmux kill-session -t <session name>

Rename session

tmux rename-session -t 0 <new_session_name>

Detach session and attach (when the windows is too small)

tmux attach -d