'AWS S3 list all files with specific content type

I want to CLI list all S3 bucket files that have content type = binary/octet-stream.

aws s3 ls s3://mybucket -r -content-type???
  1. How to list files with content type = binary/octet-stream?
  2. How to list all files with the content type of each file?


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source