Agile Web Development with Rails 7: Following logs (PDF p. 16) (solved)

In section ‘The Desktop’, you describe various windows that are convenient to have open, while developing.

Using less -F allows searching the whole (log) file.
How about mentioning this command (in addition to tail -f)?
(Notice the different capitalisation in the two commands.)

I find this really useful, when the time comes to, well, search for exception names or other information.

       -F or --quit-if-one-screen
              Causes less to automatically exit if the entire file can be dis‐
              played on the first screen.

Perhaps you are thinking of typing the command “F” once less has loaded the fie?

Ah sorry, that should have been +F at the command line, like this:

less +F development.log

I learned something new! Added.

1 Like