bash how to find out what type of file it is code example Example 1: how to get file type in linux file <filename> Example 2: linux find filetype find . -iname "*.err"