After using a search in less
of the format &pattern
, which displays only matching lines, how can I go back to displaying all lines in the file?
Esc doesn't do anything as far as I can tell. Ctrl+c doesn't either. q simply exits less
.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.
Sign up to join this communityJust enter & again with no search term
&
with an empty pattern should work. What version ofless
do you have? Have you checkedman less
?