"Everything is a file" describes one of the defining features of Unix, and its derivatives — that a wide range of input/output resources such as documents, directories, hard-drives, modems, keyboards, printers and even some inter-process and network communications are simple streams of bytes exposed through the filesystem name space.
https://en.wikipedia.org/wiki/Everything_is_a_file"Everything is a file"是 UNIX like 系统把一切硬件都当成文件,总结一下就是"Everything is a file"。
UNIX 哲学:
1.小即是美;
2.每一个程序只做好一件事;
3.尽快建立设计原型;
4.舍去效率换取可移植性;
5.使用纯文本来存储数据;
6.充分利用软件的杠杆效应;
7.使用 Shell 脚本提高杠杆效应和可移植性;
8.避免强制用户界面;
9.让每一个程序都成为过滤器。
UNIX 哲学不代表 UNIX 系统:
未来某一天 Linux 可能会见证到自身被一个较新的系统所取代,以一种我们想象不到的方式。这其实没什么大不了的,当这种情况发生时,那些早就知道该如何“像 UNIX 那样思考”的人们会为此做好准备。
让我们继续,做一件事情并把它做好,最后你的辛苦必将获得回报。