[SOLVED] - File and getting magic patterns

Can anybody advise on the appropriate command and switches needed to gather the magic patterns, offsets, etc for files of different types?

I have read the man pages for magic and file; however, magic does not get executed by hand.

I am looking for the means to add file recognition to a linux system for various reasons.

Thanks in advance,

I found what I needed!

This website https://www.geeksforgeeks.org/working-with-magic-numbers-in-linux/ mentioned a command that I had not seen in forever.

The command xxd is what I needed.