Programming Wiki: Linux Find Tips

Programming Wiki : LinuxFindTips

WikiHomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

Linux Find Tips


Excluding directories from a search
find / -type d \( -name dev -o -name home -o -name proc -o -name log -o -name sys \) -prune -o -print;

This would search all of the directories on the system except dev, home, proc, log, and sys and show the results.

There are no comments on this page. [Add comment]

Powered by Wikka Wakka Wiki
Page was generated in 0.0173 seconds