top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Which utility is used to make automate rotation of a log?

0 votes
703 views
Which utility is used to make automate rotation of a log?
posted Feb 22, 2016 by Mohammed Hussain

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

logrotate command is used to make automate rotation of log.
Syntax of the command is:

logrotate [-dv] [-f|] [-s|] config_file+

It allows automatic rotation, compression, removal, and mailing of log files. This command is mainly used for rotating and compressing log files. This job is done every day when a log file becomes too large. This command can also be run by giving on command line. We can done force rotation by giving –f option with this command in command line. This command is also used for mailing. We can give –m option for mailing with this command. This option takes two arguments one is subject and other is recipient name.

answer Feb 23, 2016 by Shivaranjini
Similar Questions
+3 votes

I was running a binary and in between network went down. Process was still running with its parent "1".
I re-logged into the system and find the running process and trigger $ kill -9 . After doing that I was trying to rerun the binary but it was not working with error message "Port is already being used" but I again checked there was no binary with such name. How I can resolve such issue ? Please help me .

+3 votes

How to send a mail using sendmail utility? Example would help?

0 votes

In interviews, it very common question. What things are considered to implement a timer ?

...