file file (1) - determine file type
file file (1b) - determine the type of a file by examining its contents
Please click on " man file " to see the Manual Page for this command.