linux command to remove all file with extension code example Example: ubuntu delete all files with extension cd <dir> find . -type f -iname \*.jpg -delete