Gm to all,
I need to find the sum of the total files of a certain type (for example pdf) in my entire linux machine (total file size, not the total occupied size).
For example i want to know the total size of all my pdf files or my jpg files starting from the root.
Of course, i need to use bash.
Any suggestion? (the only thing that i've learnt is that i should use -b option if using du).

Many thanks!