Linux File System Knowledge Daquan

  

Q1. What is the Linux directory tree structure? What is the difference between it and the directory tree structure of Windows
? Why does the Linux file system use a fixed directory format?

A: A file is an abstract concept, it is a repository for all data or information;

1) Linux directory tree structure is: root directory (/) on, other Parallel to the next;

2) WindowsOS
also uses a tree structure, but the root of its tree structure is the drive letter of the disk partition. There are several partitions with several trees. Structure, the relationship between them is juxtaposed; and in Linux, no matter how many operating system
manages several disk partitions, there is only one such directory tree;

3) Yes: Linux is a multi-user system. Developing such a fixed directory plan helps to manage system files and different user files.

4) File types in Linux include: regular files and directories. Files, device files, pipe files, and linked files.


Q2. What is a virtual file system? What is a virtual file system interface?

A:

1) Incorporate the operation and management of various file systems into a unified framework so that user programs can access the same file system interface, that is, the same system. Call, operate on a variety of different file systems and files; user programs can not care about the implementation details of different file systems, but use the unified, abstract, virtual file system interface provided by the system; this unified framework is called virtual File system conversion, generally referred to as virtual file system (VFS);

2) VFS object types include: superblock (superblock) objects, inode (inode) objects, directory entries (dentry) objects and files ( File) object;

3) The virtual file system interface is an abstract interface provided by the virtual file system. It is mainly composed of a set of standard, abstract operations. These functions (operations) are provided in the form of system calls. User call.

Copyright © Windows knowledge All Rights Reserved