snippetbashTip
less — Open a file for interactive reading, allowing scrolling and search. More information: <https://manne
Viewed 0 times
commandlessclifileopenreadinginteractivefor
Problem
How to use the
less command: Open a file for interactive reading, allowing scrolling and search. More information: <https://manned.org/less>.Solution
less — Open a file for interactive reading, allowing scrolling and search. More information: <https://manned.org/less>.Open a file for interactive reading:
less {{path/to/source_file}}Page down/up:
{{<Space>|<b>}}Go to end/start of file:
{{<G>|<g>}}Forward search for a string (press
<n>/<N> to go to next/previous match):</>{{pattern}}Backward search for a string (press
<n>/<N> to go to next/previous match):<?>{{pattern}}Follow the output of the currently opened file:
<F>Open the current file in an editor:
<v>Exit:
<q>Code Snippets
Open a file for interactive reading
less {{path/to/source_file}}Page down/up
{{<Space>|<b>}}Go to end/start of file
{{<G>|<g>}}Forward search for a string (press `<n>`/`<N>` to go to next/previous match)
</>{{pattern}}Backward search for a string (press `<n>`/`<N>` to go to next/previous match)
<?>{{pattern}}Context
tldr-pages: common/less
Revisions (0)
No revisions yet.