This is a draft cheat sheet. It is a work in progress and is not finished yet.
Navigation
j |
Forward 1 line (or N lines) |
k |
Backward 1 line (or N lines) |
d |
Forward ½ screen |
u |
Backward ½ screen |
f |
Forward 1 screen (Page Down) |
b |
Backward 1 screen (Page Up) |
|
|
Follow
less +F filename.txt |
Follow like "tail -f" (^+C to stop) |
F |
Start following like "tail -f" |
|
|
Search
/pattern |
Find pattern forward |
5 + /pattern |
Find 5th match |
?pattern |
Find pattern backward |
5 + ?pattern |
Find 5th match backward |
n |
Repeat previous search |
5 + n |
Repeat previous search 5 times |
N |
Repeat previous search in reverse direction |
5 + N |
Repeat previous search in reverse 5 times |
Search
/pattern |
Find pattern forward |
5 + /pattern |
Find 5th match |
?pattern |
Find pattern backward |
5 + ?pattern |
Find 5th match backward |
n |
Repeat previous search |
5 + n |
Repeat previous search 5 times |
N |
Repeat previous search in reverse direction |
5 + N |
Repeat previous search in reverse 5 times |
|