zoukankan      html  css  js  c++  java
  • Seven file types of Unix system(4.3)

    Most files on a UNIX system are either regular files or directories, but there are additional types of files. The types are:

    1. Regular file. The most common type of file, which contains data of some form. There is no distinction to the UNIX kernel whether this data is text or binary. Any interpretation of the contents of a regular file is left to the application processing the file.

      One notable exception to this is with binary executable files. To execute a program, the kernel must understand its format. All binary executable files conform to a format that allows the kernel to identify where to load a program's text and data.

    2. Directory file. A file that contains the names of other files and pointers to information on these files. Any process that has read permission for a directory file can read the contents of the directory, but only the kernel can write directly to a directory file. Processes must use the functions described in this chapter to make changes to a directory.

    3. Block special file. A type of file providing buffered I/O access in fixed-size units to devices such as disk drives.

    4. Character special file. A type of file providing unbuffered I/O access in variable-sized units to devices. All devices on a system are either block special files or character special files.

    5. FIFO. A type of file used for communication between processes. It's sometimes called a named pipe.

    6. Socket. A type of file used for network communication between processes. A socket can also be used for non-network communication between processes on a single host. 

    7. Symbolic link. A type of file that points to another file.


    作者:beanmoon
    出处:http://www.cnblogs.com/beanmoon/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接。
    该文章也同时发布在我的独立博客中-豆月博客

  • 相关阅读:
    danci8
    禁止选择文本
    danci6
    danci5
    java 学习编译
    自动代码模板文件
    java 学习5 .io
    java 学习4 callback 回调 和泛型
    java 学习3。集合
    java 学习3。类 和 继承
  • 原文地址:https://www.cnblogs.com/beanmoon/p/2713380.html
Copyright © 2011-2022 走看看