Everything is a file
tags: #linux
In Linux, Everything is a file even commands like cat or ls are actually programs located under /bin/cat or /bin/ls, and in other words, files.
One interesting thing is that [ itself is a file, and not a shell built-in.
If everything is a file, then what are directories?
Directories are just files with a list of filenames inside.