How to display line numbers in 'less' (GNU)

前端 未结 6 1756
余生分开走
余生分开走 2021-01-29 17:09

What is the command to make less display line numbers in the left column?

6条回答
  •  盖世英雄少女心
    2021-01-29 17:40

    From the manual:

    -N or --LINE-NUMBERS Causes a line number to be displayed at the beginning of each line in the display.

    You can also toggle line numbers without quitting less by typing -N.

    It is possible to toggle any of less's command line options in this way.

提交回复
热议问题