in Unix, everything is a file.This simplifies the manipulation of data and devices into a set of core system calls: open(), read(), write(), lseek(), and close().
https://www.cnblogs.com/feng9exe/p/10221729.html