Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jlord
Created October 12, 2014 06:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jlord/3169232ff6476055aa59 to your computer and use it in GitHub Desktop.
Save jlord/3169232ff6476055aa59 to your computer and use it in GitHub Desktop.
less commands

less commands

type capital G: go to end of file type small g: go to beginning of file type ?: enter reverse search type /: enter forward search

e.g.

g /

will go to beginning of file and enter a forward search

g /error

will go to beginnign of file and find the first instance of 'error' and take you there

hit / and then up arrow to repeat the same search over and over till you find what you want

you can also do:

G ?error

to go to end of file and search backwards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment