remove all files with in it code example Example: rm files with extension find . -name "*.bak" -type f -delete