In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
File: an unix file does not include eof symbols. The length and name of the file are not saved in the file. All the attributes of the file are stored in a special area of the hard disk and are only accessible by the kernel.
Classification of documents:
Ordinary files: also known as standard files, standard files usually save only data in the form of character streams
Directory file: generally speaking, it refers to a directory that contains files and other directories, but strictly speaking, it only contains the name of the file and the corresponding numerical code
Device files: all devices and peripherals can be represented as files.
Normal files: contains text files, binary files.
Note: when you use the cat command to display the contents of a binary file, garbled code will appear on the screen, which may even break the settings of the user terminal.
Directory file: a directory file that does not include data other than the details of the files and subdirectories in the directory
Each record consists of: file name, unique identifier of the file or directory (number of inode nodes)
Note: the directory file contains only the file name, not the file content, the file name can only be found in the directory file, and the file itself does not contain its file name, file size or file access permissions.
Question: you can't write directly to the directory file, but you can do something so that the kernel program can write to the directory file.
Device file: does not use the character stream format, does not contain any content, each file has some attributes are not saved in the file, but saved in a special area on the disk.
Note: the way a device operates depends entirely on the properties of its corresponding device file. The kernel program will distinguish the various devices according to the properties of the devices and use these attributes to control the devices.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.