how to check which type of file it is in ubuntu in terminal code example Example: linux find filetype find . -iname "*.err"