We're an ISO27001:2013 Certified Supplier


The less utility is a popular way of looking at text files, but it has many features that few are aware of. As well as scrolling forward and back, here’s a few options available while viewing a file:

Right or left arrow: scroll horizontally
g: go to top of file
G: go to end of file
/pattern: search forwards for pattern
?pattern: search backwards for pattern
n: repeat previous search
N: repeat previous search in reverse direction
F: Scroll to end of file and keep reading it (similar to tail -f)
=: show current position in file
-n: Hide line numbers
-N: Show line numbers
v: invokes the editor to edit the file

There’s lots more: maybe perusal of the less manpage over coffee would be helpful.

Could this Linux Tip be improved? Let us know in the comments below.


Leave a Reply

Your email address will not be published. Required fields are marked *

Secure. Reliable. Scalable.

If that doesn't describe your current Linux systems, check out our FREE Linux Survival Guide to help you get your systems up to scratch today!
  • This field is for validation purposes and should be left unchanged.