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?
            Asked
            
        
        
            Active
            
        
            Viewed 6,169 times
        
    1 Answers
10
            
            
        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.
 
    
    
        Jeff Y
        
- 2,437
- 1
- 11
- 18
- 
                    `-n` option counts the bytes instead of number of lines. But yes, it is fast and saves from delay of counting line numbers of huge files. – M.sh Feb 27 '16 at 12:52
- 
                    Probably because bytes can be `seek`ed (where lines generally can't, without using some sort of index on newlines). – Jeff Y Feb 27 '16 at 13:04
 
    