how to check the type of file in linux code example Example: how to get file type in linux file <filename>