At the linux command line, I'd like to compress all .pdf files in a directory, any of it's subdirectories and so on - but only .pdf files. I'm struggling to figure out the syntax, any ideas appreciated.
PDF files are binary files and probably won't compress much.
But if you want to try compressing PDF files, you could use
This will compress all PDF files (and only PDF files) in folders below the current directory.