Navigation | |
---|---|
F |
follow output |
ctrl+c |
stop following output |
z |
forward one window |
w |
backward one window |
G |
go to the end of file |
g |
go to the start of file |
10g |
go to line 10 |
q |
exit |
Search | |
---|---|
/ |
search for a pattern forward |
? |
search for a pattern backward |
n |
next match |
N |
previous match |
Less frequent | |
---|---|
-N |
display line numbers |
-S |
chop (don't wrap) long lines |
ma |
mark the current position with the letter ‘a’, |
‘a |
go to the marked position ‘a’. |
&pattern |
display only the matching lines, not all. |
ctrl+G |
show the current file name along with line, byte and percentage statistics. |