Sunday, August 29, 2010

Find anything you want...

One of the most frequently used utility is the 'find' command


Below is an example of find command which can find a file in a filesystem with a specific size.

find /var -size +100000 -mount -print | more
find /var -xdev -size +10000000c -exec ls -ltr {} \;                     // display the files in long listing

There are many options that can be used with find to tune our search; like, finding files that has ben changed before a particular date or after a particular date etc...

No comments:

Post a Comment