locate file with extensions code example Example: find linux with extension find /home/username/ -name "*.err"