*************************************************************************** * Description: Linux command of cleaning up files within a folder by mtime * Date: 05:52 PM EST, 08/08/2017 *************************************************************************** <1> Linux command to cleanup files by modified time in batch: | | |__ CMD> find {DIRECTORY} -name "{FILE_NAME}" -mtime +${RETENTION} -exec rm {} \; | | |__ CMD> find /u01/oracle/admin/adump -name "*.aud" -mtime +60 -exec rm -f {} \; | | |__ o. Example: Wiping out all the auditing files older than 60 days without confirmation prompted.
Your Comments