1. Search files created/modified before 30 days
Use this command to search all files created or modified before 30 days in /var/backup directory. Find provides the option -mtime to define number of days. You can also search file created before 30 minutes using -mmin optiopn.
2. Search files with specific extension
You can also search file for a specific extension. For example to search all files with extension “.log” under /var/log directory. Or search speficif extension file created before 30 minutes. The above command will show only files having a .log extension.