next up previous contents
Next: ftp - File transfer Up: Other Useful Commands Previous: fg - Move job   Contents

find - Find files in a directory tree

Examples:-

find ./ -name "*.cxx"

Print all files named *.cxx within directory tree starting at ./

find /home/west \( -name "*.o" -o -name a.out \) -atime +7 -exec rm \{\} \;

Starting with top level directory /home/west find any file named *.o or a.out that was accessed more than 7 days ago and remove it.



P.D. Gronbech (IT Staff) 2015-10-02