2/18/2023 0 Comments Find files older than 30 days![]() ![]() Recently I came across one such requirement of deleting files older than X days from a directory in Unix server and I thought of sharing the solution with you. It comes up with multiple options which when gets handy can help you cover a lot of functional requirements like moving files among directories, deleting old files, archiving files etc. ![]() find command is more powerful than you can really imagine. In order to delete files older than X number of days, try using Unix find command. In this simple tutorial, we’ll quickly look at the solution to this problem. The best way to achieve is to have a cron job or an autosys job which will delete the older log files from the directory. In Production server, there is always a need to free up the disk space from time to time. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |