Ticker

6/recent/ticker-posts

File System in linux

 File System

A File system is a logical collection of files on a partition or disk . A partition is a container for information and can span an entire hard drive if desired .
 
The general-purpose of it is to store data systematically so that we can easily access the file in less time .
 

Below is a picture of file system in linux 

 
 file system consist of directories / folders . The explanation of  each is below
 

1. /bin 

In bin directory all binary executable files are locate . Which are available for all users . The code of commands in machine language such as ls,cd,rm etc are store in it.
 

 2. /boot

In boot directory all files and sub directory which help's or use in booting up the device are held in it.
 

3. /dev

In dev directory all hardware files and drivers are present in it.
 

4. /etc

 In etc directory supervisor directory commands , disk configuration files and other configuration files are store in it with valid user lists and groups.
 

5. /home

home directory contains all users data in it . such as Documents,Downloads,Pictures etc.
 

6. /lib

This directory contain all library . files and sometimes kernel-related files

7. /media

This  directory is automatically mount any external devices inserted to the computer like USB etc

8. /mnt

This is use to mount other temporary file systems such as cdrom and floppy drive

9. /proc

This contains sudo files or all processes marked as a file by process number or other information that is dynamic to the system.

10. /run

This is use by different distro in differently way . it is similar to RAM mean it is violatial

11. /sbin

 This contains binary executable files, usually for system administration.
during runtime.

12. /srv

It stand for service .This directory appear here when we use server.

13. /sys (system)

This will interact with kernal and similar to /run

14. /tmp (temporary)

It holds temporary files used between system boots

15. /usr (user)

This is used for miscellianeous purposes and can be used by many users includes administrative commands, shared files, library files, and others

16. /var 

This typically contains variable-length files such as log and print files and any other type of file that may contain a variable amount of data.
In Simple : it contain files large in size
 

17. /     (root)

This is a root directory which should contain only the directories needed at the top level of the file structures.
 
All the directory mention above are held in root partition

Post a Comment

0 Comments