way to flush /var/log/message

Reindl Harald h.reindl at thelounge.net
Sun May 20 13:03:54 UTC 2012



Am 20.05.2012 14:52, schrieb suvayu ali:
> On Sun, May 20, 2012 at 2:20 PM, Mikkel L. Ellertson
> <mellertson at gmail.com> wrote:
>>
>> What you are seeing is the last last 10 lines of the file, and
>> then new additions as it is added to the file. This is the way
>> tail -f works. You may want to read the man or info page on tail.
> 
> Maybe `less +F /path/to/file` would be more appropriate here?

"tail -n 1000 -f /var/log/messages" does practically the same
and is more suiteable on large files

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20120520/06ea91ab/attachment.sig>


More information about the users mailing list