less
Arguments
-F
- exit if the entire file is display on the first screen-i
- ignore case on searches-J
- Displays an asterisk next to each matching line of a search (but also adds a blank column on the left)
Keyboard commands
Where N
is a number (integer).
F
- scroll forward, and watch the file for new lines (similar totail -f
)g
- jump to first lineNg
- jump to line #G
- jump to last lineN%
- jump toN
percent of the file (fex: 25%)&<pattern>
- only show lines that match<pattern>
(similar to grep); use&
to remove filter=
- print some info about the filev
- edit the same file using theVISUAL
environment variable as your editor!<string>
- execute<string>
and print results (fex:!ls
)s<filename>
- save piped output to<filename>