November 19, 2012

FIND


To find a file/directory
------------------------
find /home -name oraInventory -print
find /home|grep oraInventory

To delete files older than 60 days
----------------------------------
find . -name "*.gz" -depth -mtime +60 -exec rm {} \;

SOURCE : Internet

No comments:

Post a Comment