less Command Equivalent to tail -f

lessshelltail

I would like to open up a file using less, and have it automatically scroll the file similar to tail -f.

I know that I can do less file, and then hit Shift-F to forward forever; like tail -f.

I need less because it provides the --raw-control-chars flag, which is necessary because my input is colorful.

Best Answer

use the command "F" while inside of less.

less mylogfile.txt
F

or, to do so automatically, use the +cmd option:

less +F mylogfile.txt