shellunixsearchless-unix

Going to a specific line number using Less in Unix


I have a file that has around million lines. I need to go to line number 320123 to check the data. How do I do that?


Solution

  • With n being the line number:

    So to go to line number 320123, you would type 320123g.

    Copy-pasted straight from Wikipedia.