Skip to content

Instantly share code, notes, and snippets.

View bmeiggs's full-sized avatar

Brett Meiggs bmeiggs

  • Gannett
  • Virginia Beach, VA
View GitHub Profile
@bmeiggs
bmeiggs / tmux_tips_and_tricks.md
Last active March 17, 2023 17:42 — forked from dusenberrymw/tmux_tips_and_tricks.md
Tmux Tips & Tricks

Quick cheat sheet of helpful tmux commands

  1. tmux new - Create and attach to a new session.
  2. tmux new -s NAME_HERE - Create and attach to a new session named NAME_HERE.
  3. CTRL-b, d - Detach (i.e. exit) from the currently-opened tmux session (alternatively, tmux detach). Note, this means press and hold CTRL, press b, release both, press d.
  4. tmux ls - Show list of tmux sessions.
  5. tmux a - Attach to the previously-opened tmux session.
  6. tmux a -t NAME_HERE - Attach to the tmux session named NAME_HERE.
  7. CTRL-d - Delete (i.e. kill) currently-opened tmux session (alternatively tmux kill-session).
  8. CTRL-b, [ - Enter copy mode, and enable scrolling in currently-opened tmux session. Press q to exit.
  9. CTRL-b, " - Split window horizontally (i.e. split and add a pane below).

Keybase proof

I hereby claim:

  • I am bmeiggs on github.
  • I am bmeiggs (https://keybase.io/bmeiggs) on keybase.
  • I have a public key ASBobdV57wYyXhKMAGXrvJjrM6L8j9dujYlXUNK_VUFQXgo

To claim this, I am signing this object: