Batch compressing PDF files on Mac and Linux

A guide to locally compressing PDF files, featuring ready-to-use bash scripts for both single and batch processing.