Compress many files in parallel:
ls *.log | xargs -P 4 -I{} gzip -k {}-P 4 runs four jobs at once. -I{} puts each filename where the placeholder sits. -k keeps the originals.