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