how to determine the file type in linux code example Example 1: linux see file system type fsck -N /dev/sd** Example 2: how to get file type in linux file <filename>