ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

find command - some unusual usages


Article ID: 168138


Updated On:




The Linux command 'find' is well-known in itself, but rarely exploited to its full potential.N/A


Most Linux-using engineers will sometimes use the 'find' command to... well to find a file:

Here's a fairly typical example:
[[email protected] /]# find /tftpboot/sean_1/ -name lastlog

Yet 'find' can do so very much more! How about using it to find all files on a VAP member which have changed in the last 24-hours:

find /tftpboot/sean_1/ -type f -mtime 0

Or, slight change, to find which files have changed *today* (i.e. since midnight):
find /tftpboot/sean_1/ -daystart -type f -mtime 0

Just a couple of (potentially useful in their own right) illustrations. find can do a lot more than just find files by name...