64

I'm starting to use tmux, and I already love it. But if I could search through scrollback history it would be even better (e.g. like in iTerm2). Is there a way to do it as of now?

pms
  • 758

1 Answers1

72

When you're in scrollback mode, you can use ctrl-S to search. More useful information here: How can I search within the output buffer of a tmux shell?

user295691
  • 844
  • 7
  • 4
  • 20
    Ctrl-S works for emacs bindings. If your tmux is using vim bindings, enter copy mode and use slash (/) – phs Jan 20 '17 at 20:23
  • Warning - this does not handle newlines. e.g if you search for a string, but that string occurs split across multiple lines, you will miss the split results! – Adverbly Jan 15 '20 at 21:01
  • 2
    with vim bindings, / is to search down, but you most like want to search up with ? – jan-glx Jul 06 '23 at 06:18