Very simple should take 2-3 min. http://forums.digitalpoint.com/showthread.php?t=2496640 Name what you would like in exchange.
cd /bin nano WHATEVERYOUWANT Code (markup): Copy paste this code into the nano window #!/bin/bash find / -xdev –type f ‘(‘ –name core –o –name ‘core[0-9]*’ –o –name ‘*.core’ ‘)’ –atime +7 –exec rm –f {} ‘;’ Code (markup): After that continue with chmod -R 777 WHATEVERYOUWANT Code (markup): That code should be free to be executed from that script. Although if you want to run it as a normal user instead of root, additional tweaks are needed