Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I can't find my log file anywhere, I've looked in the normal places and tried using slocate to find it but can't find it anywhere. Does anyone know what has happened, is it possible that I just don't have one?
Do you know how I can delete some of the log, get rid of the bits from a long time ago? Is there some kind of command that can do that or do I just have to sit and delete everything up to the date that I want to keep?
If you turn logrotate on, it will automatically and periodically rename all your log files to logfilename.1, logfilename.2, etc. Mine does this weekly, and goes up to 4 (So after a month, the 4th one is bumped off). If you tweak the values, you can get rid of logs older than whatever date you want.
P.S. Remember to add logrotate to your cron jobs so it runs periodically by itself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.