Home  >  Article  >  What is used to manage files in the file system

What is used to manage files in the file system

(*-*)浩
(*-*)浩Original
2019-12-10 13:36:178782browse

What is used to manage files in the file system

#The file system is the method and data structure used by the operating system to identify files on storage devices (commonly disks, but also solid-state drives based on NAND Flash) or partitions; That is, a method of organizing files on a storage device.

The software organization responsible for managing and storing file information in the operating system is called the file management system, or file system for short.

The file system consists of three parts: the file system interface, a collection of software for object manipulation and management, and objects and attributes. (Recommended learning: web front-end video tutorial)

From a system perspective, the file system organizes and allocates the space of the file storage device, and is responsible for file storage and processing of stored files. Systems for protection and retrieval.

Specifically, it is responsible for creating files for users, storing, reading, modifying, and dumping files, controlling file access, and revoking files when the user no longer uses them.

In a computer, a file system is a system for naming files and placing logical storage and recovery of files.

DOS, Windows, OS/2, Macintosh, and UNIX-based operating systems all have file systems in which files are placed somewhere in a hierarchical (tree-like) structure. . Files are placed into directories (folders in Windows) or subdirectories at the desired location in the tree structure.

The file system specifies the rules for naming files. These rules include the maximum number of characters in a filename, what kinds of characters can be used, and how long a filename suffix can be on some systems.

The file system also includes a format for specifying paths to find files through a directory structure.

The file system is a part of the software system. Its existence allows applications to conveniently use abstract named data objects and variable-sized spaces.

The file system is the method and data structure used by the operating system to identify files on the disk or partition; that is, the method of organizing files on the disk. Also refers to the disk or partition used to store files, or the type of file system.

Therefore, it can be said that "I have 2 file systems" means that he has 2 partitions, one to store files, or he uses "extended file system", which means the type of file system.

The difference between a disk or partition and the file system it contains is important. A few programs (including most legitimately those that generate file systems) operate directly on the raw sectors of a disk or partition; this may corrupt an existing file system. Most programs operate based on file systems and cannot work on different file systems.

Before a partition or disk can be used as a file system, it needs to be initialized and the record data structure written to the disk. This process is called creating a file system.

The above is the detailed content of What is used to manage files in the file system. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn