unix command line delete file with certain extension code example Example: rm files with extension find . -name "*.bak" -type f -delete