More with line numbers

Hi All,

How to get line numbers when we more on a file in LINUX

thanks
firestar

nl file| more

---------- Post updated at 04:55 PM ---------- Previous update was at 04:37 PM ----------

If you are a vi-user you can also do:

:set number
# to turn them off
:set nonumber
1 Like