Command “less”:

  • search:
    • / – search for pattern forward
    • ? – search for pattern backward
    • n = next match forward
    • N = previous match backward
  • screen / file navigation:
    • G = jump to the end of file
    • g = jump to the start of file
    • q = exit less
    • page down or CTRL+F like forward
    • page up or CTRL+B like backward
  • simulate “tail -f” – press F
  • position statistics – CTRL+G
  • v = edit
  • h = summary
  • &pattern = display only matching lines
  • multiple files in less:
    • call “less file1 file2 ….”
    • or type :e filename
    • navigation:
      • :n = go to next file
      • :p = go to previous file