The filesytem

Inode types

On Linux, everything is a "file".

When you display file info with ls -l on Linux, the file permissions output shows 9 characters for permissions, and a tenth one for the inode type.

 type
  |
  v
0 crw-rw-rw-  1 root  wheel   14,   1 Sep 28 12:19 /dev/urandom
   ^       ^
   |---|---|
       |
     perms

Here's the type list

  • -: File
  • d: Folder
  • b: Block inode
  • c: Device inode
  • p: Pipe (simple or named)
  • l (lower case L): Symbolic link
  • s: Socket inode