Skip to the content.

File types in Linux

Note the first letter of the output:

What type a file is?

$ file /dev/sda

Or

$ ls -l .

Or

$ stat [OPTION]... FILE...