File System in Operating System

operating system file management - File System in Operating System

File System:

Linux operating system uses a different type of files to manage the processing and contain the details of commands and software. The files are arranged in a particular sequence that helps to access the file from the system memory for execution. Linux file system uses the different type of directory to contain its related files and provide to the kernel for managing the user instructions. Linux system also helps to execute the programming instructions so it uses the different file for supporting the program function and compilation.

Linux File System:

Linux file management
image source:-http://etutorials.org

The operating system use input-devices and other resources for managing user instructions. There are multiple files are used in Linux system and all are organized in a particular format. Each file contains a special task and separated with a particular directory.

1. Ordinary files:

It is the type of file that manage the user related files, program files and object files etc. The executable files are also stored in this type of file.

2. Directory files:

Each directory there is a file with the same name as the directory which contains information about file under that directory. A directory file automatically created by the Linux system. When the user creates a directory file cannot be modified by a user, It automatically modified by the system.

3. Device files:

It is a special file that maintains the input-output related information. Linux system constructs the file on the base of the physical device name and the kernel is responsible for mapping the file name to its respective device.

4. Text and Binary files:

A text file is a file that stored the text without embedded format. It also is known as ASCII file. A text file can be read by any editor or word processor.

A program is stored in a particular file in a form of machine dependent language that is known as binary files. It converts the characters into binary language and represent in 8 bits format and save with a particular binary file. It is readable by the system.

Linux Hierarchy Concept:

Linux File System Hierarchy
image source:-https://earthsci.stanford.edu

The files and directories are stored in the hierarchical format and separated with / (forward slash) in a particular format. It uses the main directory root to define the files and sub-directories in the hierarchical format. Linux system access the file on the base of given sequence like flat directory structure, two-level directory structure, and tree structure.

Parent And Child Relationship:

parent-child in file management
image source:-http://images.slideplayer.com

The files are stored in directory and sub-directories can also be stored in the main directory. The directories files and sub-directories files are related in a hierarchical format. This format is also known as parent and child. The main directory root contains multiple sub-directories and represents in the form of parent and child respectively.


About the author


Add Comment

Click here to post a comment