less Linux command
Posted: 10 Mar 2024, 11:33
less
-N - option to show line numbers
-I - option to ignore case sensitive
navigation:
searching in file:
-N - option to show line numbers
-I - option to ignore case sensitive
navigation:
- space bar - next page
- b - previous page
- g- begining of text file
- shift+g - end of text file
searching in file:
- / - forward slash to enter to forward search mode
/search phrase
n - for next occurrence
shift+n - previous occurrence
- ? - question mark to enter to search mode backwards
?search phrase
n - for next occurrence
shift+n - previous occurrence