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 […]

Posted in Common, less | Hits: 246618 | 16 Comments »

less is more than more

October 21st, 2006 mysurface

We usually do pipeline less or pipeline more to pause a long text results from standard output. But these days, do don’t use more, because less more efficient compare to more. Let say if I want to pause the result of ls page by page, simply do this. ls | less Let say if I […]

Posted in Common, less, ls, Misc, more | Hits: 42845 | 2 Comments »