Why is everything a file in Linux?
Answer
The “Everything is a file” phrase
defines the architecture of the operating system
. It means that everything in the system from processes, files, directories, sockets, pipes, … is represented by a file descriptor abstracted over the virtual filesystem layer in the kernel.
Answer
The “Everything is a file” phrase
defines the architecture of the operating system
. It means that everything in the system from processes, files, directories, sockets, pipes, … is represented by a file descriptor abstracted over the virtual filesystem layer in the kernel.