In openSUSE 12.2, the less
command counts line numbers when the file is opened. This causes a lot of delays when working with huge files. Is there a way to disable this option?
You can easily display line numbers using less command. All you have to do is pass either -N or --LINE-NUMBERS option to the less command. This option forces less to show a line number at the beginning of each line in the screen.
Make the vi/vim text editor show or hide line numbers Press ESC key. At the : prompt type the following command to run on line numbers: set number. To turn off line numbering, type the following command at the : prompt set nonumber.
Use the wc command to count the number of lines, words, and bytes in the files specified by the File parameter. If a file is not specified for the File parameter, standard input is used.
My less
(cygwin) has a -n
option to suppress that default behavior. Equivalent to the long version --line-numbers
. Do man less
to see your less
's options.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With