On a UNIX system,everything is a file;if something is not a file, it is a process.
Tree
All devices are files
Regular file:contain normal data
text file,executable file,program,input for program,output from program
special files:
Directory:lists of other files
Special files:the mechanism for input and output
most are in /dev
Links:a system to make files or directories visible in multiple parts of the system's file tree
(Domain)sockets:providing inter-process networking
protected by the file system's access control
Named pipes:form a way for processes to communicate with each other