Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Im new to linux and i have a slight problem, i have logs that i dont need and there's lots of them i was wondering if there is a way to remove all of them in one go where the logs are older than 30 days. Any suggestions would be appreciated.
well generally you'd look into logrotate, but as you've given us no information whatosever about what these logs are we can't really help much more can we?
Well i'm using an oracle product called collaboration suite on linux, and it archives the logs, i dont need the logs that are older than 30 days as a backup was taken and anything older than 30 days is not necessary.
well fair enough, no idea what the logging structure would be there, but as above, check out logrotate. you will already have it running on your system, and it'd be trivial to ask it to rotate another log file.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.