Basic text search in less
November 2nd, 2006 toydi
We usually use less as the default pager to display manuals and text files. Besides its basic navigation commands (up, down, pageup, pagedown, home, end), its text search commands may come in handy as well.
Let say we view a file:
less /usr/share/games/fortunes/linux
To search a keyword e.g. Linus, we type:
/Linus
A few more buttons to press:
n - forward [...]
Posted in Common, less | Hits: 2503 | No Comments »
Live Chat!








