I have just found out that /dev/null
is a file and not a directory.
I'm just wondering if it has an actual file size.
I have just found out that I'm just wondering if it has an actual file size. |
||||
|
/dev/null is not really a file. It's a character device!
The first letter So in easy words: /dev/null is not a file but a virtual device mapped to this path in the file system which has the only purpose to swallow and vanish data - like a black hole. Therefore it does not have a specified file size, as it's not a file. |
|||||||||||||||||||||
|
Device files act as a interface to some kernel functions. They just occupy the space that is needed for a directory entry ("inode") but don't have any real content and don't have an actual file size. Other device files are e.g. |
|||||||||||||||||
|