Linux find file and directories and delete

Use the first to delete directories also second only files SkipĀ -exec and all after just to search so you dont delete the wrong stuff. find . -name NAME_TO_FIND -exec rm -rf {} \; OR find . -type f -nameĀ NAME_TO_FIND -exec rm -f {} \;

Blog at WordPress.com.

Up ↑