bash less - ghdrako/doc_snipets GitHub Wiki

Key Result
spacebar Next page
b Previous page
g First line
G Last line
j Down (a line at a time)
K Up (a line at a time)
/ Search down for string
? Search up for string
n Repeat last search downward
N Repeat last search upward

Moving around in less is simple: press space to go down a page, and b to go up a page. You can use j and k to go down and up a line at a time (these are the same keys that the editor Vim uses to move down and up). To go back up to the top of a file, enter g; to go to the bottom of a file, press G.

⚠️ **GitHub.com Fallback** ⚠️