TrID is an utility designed to identify file types from their binary signatures
While there are similar utilities with hard coded logic, TrID has no fixed rules. Instead, it's extensible and can be trained to recognize new formats in a fast and automatic way
https://mark0.net/soft-trid-e.html
Repository: https://github.com/ryuuzaki42/TrID_AppImage
# Base
./TrID-*_JB-x86_64.AppImage
# With some file.txt
./TrID-*_JB-x86_64.AppImage file.ext