In Linux, file types define how the kernel recognizes and interacts with files, influencing actions such as reading, writing, and executing them within the filesystem

Here are a list of available file types on Linux 😎👇 #sysadmin #devops #opensource

Find high-res pdf books with all my #Linux related infographics at https://study-notes.org

@dan_nanni does kernel actually recognize hard-links differently from regular files?

For symbolic links, there are user space tools to detect them.

For hard-links, I thought this is all handled transparently on filesystem level, and it is used on upper layers as regular files or directories.

@kravemir
In Linux ext file systems there are directory entries (inodes) and data objects. You can have two inodes pointing to the same data and that's hardlinks.
Softlinks in turn contain paths to other inodes
@dan_nanni
@kravemir good point! At the filesystem level, hard links and regular files are the same. But the way they are created differs. For hard links there must be preexisting inode and they cannot be created out of thin air like true regular files. So I guess distinction depends on where you put your focus