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