Example / Exercise +

  1. Open your terminal and ssh to scs.dsc.umich.edu
  2. Note your host, type hostname to confirm.
  3. Start a new tmux session named 506 as follows: tmux new -s 506
  4. Type echo Window 0
  5. Create a new window using cntrl+b c
  6. Type echo Window 1
  7. Use cntrl+b n and cntrl+b p to navigate between windows.
  8. Within either window, type echo Pane 0
  9. Create a new horizontal pane using cntrl+b " (i.e. cntrl+b shift+')
  10. Type echo Pane 1
  11. Use cntrl+b [up arrow] and cntrl+b [down arrow] to move betwen panes.
  12. Make directories ~/506/test/1 using mkdir -p $Home/506/test/1
  13. Move to the upper pane, and split into two panes using cntrl+b % (i.e. cntrl+b shift+5)
  14. On the left, change directories to ~/506/test/1. Then type pwd.
  15. On the right, change directories to ~/506/test and type pwd.
  16. In the lower pane, change directories to ~/506 and type pwd.
  17. Use cntrl+b [space] to swap pane layouts.
  18. Type cntrl+b d to detach from the tmux session.
  19. Type tmux ls to list your tmux sessions.
  20. Type tmux a -t 506 to attach to the 506 session.
  21. Use cntrl+b x (repond y for yes) to kill a single pane.
  22. Type exit to exit the entire window.

You will learn more about tmux by reading A tmux Primer by Daniel Meissler.