Get the commands used in this tutorial at: http://www.rubytreesoftware.com/resources/logrotate
Learn how to manage your servers and applications log files with logrotate.
This example uses a Ubuntu system and shows how to rotate logs for Ruby on Rails.