how to recursively delete files of a particular extension using terminal code example Example: rm files with extension find . -name "*.bak" -type f -delete