Interview Prep/Linux/Filesystem Hierarchy, Inodes & Links

What file types exist in Linux and how do you identify them?

IntermediateConceptFilesystem Hierarchy, Inodes & Links
Answer

The first character of ls -l shows it: - regular, d directory, l symlink, c character device, b block device, p named pipe (FIFO), s socket.

ls -l /dev/sda /dev/null
file /usr/bin/ls        # content type (ELF, script, text)
stat -c %F somefile
All Linux questions Roadmap: Linux

More on Filesystem Hierarchy, Inodes & Links