Carlos E. R. wrote:
The Saturday 2006-10-21 at 21:00 +0200, Hylton Conacher(ZR1HPC) wrote:
If you want to dynamically view a changing log file, try:
cd /var/log tail -f messages
Then you'll see the changes as they are happening. Tap Ctrl-C to quit.
COOL. Darn the CLI comes 'alive' when you enter the correct commands :)
If you are using a laptop use instead "tailf messages".
Tnx Carlos. I see from the man page it is similar to tail -f. It says that it displays the last 10 lines but this grows as the log file grows ie #tailf /var/log/messages did start with 10 lines but then as the file was updated so the output became more lines ie On executing the command: Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 Line 9 Line 10 After a while: Line 1 Line 2 Line 3 Line 4 Line 5 Line 6 Line 7 Line 8 Line 9 Line 10 Line 11 Line 12 How can I get it to display only 10 lines ie as #11 is added so #1 drops off? -- ======================================================================== Currently using unpatched SuSE 9.2 Professional with KDE and Mozilla 1.7.2 Linux user # 229959 at http://counter.li.org ========================================================================