Mime-type / media info
The file info functions look to the contents of a file and try to determine the mime-type from what it finds there. - inode/x-empty for empty files
# File
file -b --mime-type dog.jpeg# Mediainfo
display media files information
mediainfo --output=JSON myVideo.mp4 | jq .# identify
# exif
Written on May 2, 2021, Last update on January 8, 2022
filesystem
file
mime
ruby