how to check type of a file in linux code example
Example 1: commandline print file type
file filename
Example 2: how to get file type in linux
file <filename>
Example 3: linux find filetype
find . -iname "*.err"
file filename
file <filename>
find . -iname "*.err"