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

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

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

6条回答
  •  Happy的楠姐
    2021-01-29 17:45

    You can set an enviroment variable to always have these options apply to all less'd file:

    export LESS='-RS#3NM~g'
    

提交回复
热议问题