Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

7
  • 2
    +1, also sed -n l file could be useful.
    – enzotib
    Commented Aug 11, 2013 at 6:42
  • 1
    Does less have any clear advantages over other pager programs like pg, or does it just boil down to personal preference? Commented Aug 11, 2013 at 19:22
  • @SamWeinberg: less has more features than pg. Take a look at the less(1) and pg(1) manpages. There are other pagers as well. Take a look at unix.stackexchange.com/questions/81129/…. less is probably the most widely-used pager but which one you use comes down to personal preference.
    – user26112
    Commented Aug 11, 2013 at 19:33
  • don't forget more and most!
    – user79560
    Commented Nov 2, 2015 at 17:16
  • 1
    You can also use the tail command to see the last lines of text.
    – Jovylle
    Commented Sep 30, 2021 at 3:14