First page Back Continue Last page Overview

 

find Execution Examples

 
  • find -name "*.conf" -exec cp {} {}.orig \;

    • Create backup copies of configuration files, adding a .orig extension
  • find /tmp -ctime +3 -user joe -ok rm {} \;

    • Prompt to remove Joe's tmp files that are over 3 days old
  • find ~ -perms +o+w -exec chmod o-w {} \;

    • Fix other-writable files in your home directory