What are the commonly used file types in Linux? Six categories!

  In the process of learning Linux, you will encounter various problems, such as: What are the commonly used file types in Linux? I think many people don't know it well, let's take a look next.

  Linux files have no extension, so the file name under Linux has nothing to do with its type. Files under Linux can be divided into five different types: ordinary files, directory files, link files, device files, and pipe files.

  1. Ordinary files: the most commonly used type of files, which are characterized by not including structural information of file system information. Usually the files that users come into contact with, such as graphic files, data files, document files, and sound files, belong to this type of file. This type of file can be divided into text files and binary files according to its internal structure.

  2. Directory file: A file used to store file names and related information. It is the basic node of the kernel organization file system. A directory file can include a lower-level file directory or a common file. In Linux, a directory file is a kind of file.

  3. Link file: It is a special file that points to a real file link, similar to shortcuts under Windows. Different link files can be divided into hard link files and symbolic link files.

  4. Device file: It is the most special file in Linux. Because of its existence, the Linux system can easily access external devices. The Linux system provides a standard interface for external devices, allowing the external device to be regarded as a special file.

  5. Pipeline file: It is a very special file, mainly used for information transmission of different processes. When two processes need to transfer data or information, a channel file can be used. One process writes the data or information that needs to be transferred to one end of the pipeline, and the other process obtains the required data or information from the other end of the pipeline, usually a pipeline It is built in the adjustment cache.


Guess you like

Origin blog.51cto.com/15052541/2665348