asked on
ASKER
Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.
TRUSTED BY
Find files in /backup/logs/ directory with name daily_backup* (any characters or nothing after backup) that are more that 21 days old and remove them.
This command should have \; at the end or "{}" in quotations
find /backup/logs/daily_backup*
Find files in folders similar to /backup/logs/daily_backup*
find /backup/logs/daily_backup*
Again find files more that 5 days old and delete them.
NOTE: mtime takes file's last modified time
* would mean 0 or more characters except for / that would mean next item in the path
For more examples, consult
http://www.cyberciti.biz/faq/howto-find-delete-empty-directories-files-in-unix-linux/