News for hackers. Stuff that matters.
Re:Favorite Unix Commands by cjg_ on Monday January 07, 2013 @04:51PM (#5023477)
Hm, can you start at the end of file without reading the entire file with less? Use case is tailing large logs.
Re:Favorite Unix Commands by ralph on Monday January 07, 2013 @05:47PM (#5023738)
Yes, either type G when presented with the top of the file or pass +G on the command line. It will then read all the intervening file to calculate the line numbers, and tells you it's doing this and to interrupt it to stop. To prevent it doing this in the first place use the -n option.

"less -n huge_file" and then G only reads the start and end of the file. Type G again to move to the latest end of the file if it's growing.

Re:Favorite Unix Commands by jfb on Monday January 07, 2013 @05:01PM (#5023516)
Yes. It is CPU intensive (see auntie post above).