Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Why creating a fresh log file is called log rotate instead of log refresh or log delete? What does the word rotate emphasis?

share|improve this question

It's called logrotate because typically it is used to "rotate" logs to new files periodically -- that is, it doesn't delete or refresh them (at least from my interpretation of those words).

One definition of "rotate" provided by the Random House Dictionary is:

to cause to go through a cycle of changes or follow in a fixed routine of succession: to rotate crops.

logrotate does as described -- typically log becomes log.1, log.1 becomes log.2, etc. They are not typically deleted before they reach the threshold -- log deletion is not the primary function of logrotate, rotation is.

share|improve this answer
+1 for your support @Chris Down – Ruban Savvy Dec 20 '13 at 11:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.