Find files of a specific mime-type

Use this command to find files of a given mime-type. In this example, we are looking for video files…


find -type f -print0 | xargs -0 file -i | grep -i video

And, by the way, this command, and the last two commands were sponsored by Mahesh. Happy now?

Author: Binny V A
A philosopher programmer who specializes in backend development and stoicism.

1 thought on “Find files of a specific mime-type

Leave a Reply

Your email address will not be published. Required fields are marked *