Skip to content

Instantly share code, notes, and snippets.

@guiocavalcanti
Created March 30, 2015 20:21
Show Gist options
  • Save guiocavalcanti/1a85f42f322a859d3147 to your computer and use it in GitHub Desktop.
Save guiocavalcanti/1a85f42f322a859d3147 to your computer and use it in GitHub Desktop.

Use less +F instead of tail -f

Why? You can switch stream and search mode without leaving less. For example, while reading a file stream you can make a regular search by hitting Ctrl-c and using slash (/) to seek for a word. To switch back to stream mode hit F.

To see all the options available just read man less.

Reference: Stop using tail -f (mostly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment