SlideShare une entreprise Scribd logo
1  sur  23
Linux File System
Linux
 The Linux kernel is an open-source monolithic unix-like computer operating
system kernel.
 Its basic design from principles established in Unix during the 1970s and 1980s.
 Linux is a small UNIX system. Version 1.0 released in 1994, 2.2 in 1999.
 Today used on 7-10 million computers corporate computer network and Web
servers .
2
What is a File System
File System is responsible for storing information on disk and retrieving and updating
this information.
Example : FAT16, FAT32, NTFS
ext2, ext3 ,ext4…
 In Linux everything is file.
3
Types of File System
 Network File System
NFS
SMB
 Disk File System
ext2
ext3
FAT32
NTFS
4
Network File System
Network File System are physically somewhere else, but appear as if they
are mounted on one computer.
 NFS
It was developed by Sun.
 SMB
It was developed by Microsoft.
5
Physical Structure on the Disk
 Boot Block : information needs to boot the system
 Super Block : File System Specifications Size Max. number of files Free
blocks Free inodes
 inode List
 Block List : The files data
6
Boot
block
supper
block
Inode
list
Block
list
In operation, Linux Kernel need to know
7
Where those data are store.
How it can be access.
And where we save the new data.
Second standard file system (ext2) 1993
Maximum file size : 2TB
Maximum volume size: 8 TB
File name size: 255 characters
Supports:
POSIX permissions
File compression
8
THIRD standard file system (ext3)
Maximum file size : 2TB
Maximum volume size: 2 TB
File name size: 255 characters
Supports:
POSIX permissions
File compression
include a journal entry (PENDING)
9
RISAR FILE SYSTEM
User Journaling
Maximum file size : 8 TB
Maximum volume size: 16 TB
10
FOURTH standard file system (ext4)
Maximum file size : 16TB
Maximum volume size: 1 EXA-BYTE
Maximum NUMBER OF file: 4 BILION Supports:
POSIX permissions
File compression
include a USER journal entry
11
 In Linux, all files and directories are located in a tree-like structure. The topmost
directory is referred to as the file system root
 # Current directory (.)
# Parent directory (…)
12
Absolute path vs. Relative path
13
Linux two-part file system software
implementation
14
The first part of this two-part implementation is the Linux virtual file system
Root Structure
15
16
/boot Contains the static bootloader and kernel executable and
configuration files required to boot a Linux computer.
/dev This directory contains the device files for every hardware device
attached to the system. These are not device drivers, rather they
are files that represent each device on the computer and facilitate
access to those devices.
/ (root
filesystem)
The root filesystem is the top-level directory of the filesystem. It
must contain all of the files required to boot the Linux system
before other filesystems are mounted. It must include all of the
required executables and libraries required to boot the remaining
filesystems
/bin The /bin directory contains user executable files.
Brief Description
17/etc Contains the local system configuration files for the host
computer
/home Home directory storage for user files. Each user has a subdirectory
in /home.
/lib Contains shared library files that are required to boot the system.
/media A place to mount external removable media devices such as USB
thumb drives that may be connected to the host.
/mnt A temporary mountpoint for regular filesystems (as in not
removable media) that can be used while the administrator is
repairing or working on a filesystem.
/opt Optional files such as vendor supplied application programs
should be located here.
18
/sbin System binary files. These are executables used for system
administration.
/tmp Temporary directory. Used by the operating system and many
programs to store temporary files. Users may also store files here
temporarily. Note that files stored here may be deleted at any
time without prior notice.
/usr These are shareable, read-only files, including executable binaries
and libraries, man files, and other types of documentation.
/var Variable data files are stored here. This can include things like log
files, MySQL, and other database files, web server data files, email
inboxes, and much more.
Basic Comand
19
Basic Command
20
To see what a directory contain with all of hidden file
Ls –al or ls -a
Mounting
21
The mount command mounts a storage device or filesystem, making it accessible
and attaching it to an existing directory structure.
Syntax:
$ mount -t type file-system mount-point
added a disk /dev/sdb on /data directory
$ mount -t ext4 /dev/sdb /data
Unmounting
22
The unmount command "unmounts" a mounted filesystem. Run unmount
command with disk name or mount point name to unmount currently mounted disk.
Syntax:
$ umount /dev/sdb
$ umount /data
Thank
You
23

Contenu connexe

Tendances (20)

File system
File systemFile system
File system
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
File System Hierarchy
File System HierarchyFile System Hierarchy
File System Hierarchy
 
Linux User Management
Linux User ManagementLinux User Management
Linux User Management
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
Filepermissions in linux
Filepermissions in linuxFilepermissions in linux
Filepermissions in linux
 
Linux - Introductions to Linux Operating System
Linux - Introductions to Linux Operating SystemLinux - Introductions to Linux Operating System
Linux - Introductions to Linux Operating System
 
User Administration in Linux
User Administration in LinuxUser Administration in Linux
User Administration in Linux
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
 
Ipc in linux
Ipc in linuxIpc in linux
Ipc in linux
 
File Management in Operating System
File Management in Operating SystemFile Management in Operating System
File Management in Operating System
 
Linux.ppt
Linux.ppt Linux.ppt
Linux.ppt
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Distributed file system
Distributed file systemDistributed file system
Distributed file system
 
Linux
Linux Linux
Linux
 
Unix OS & Commands
Unix OS & CommandsUnix OS & Commands
Unix OS & Commands
 
Linux
LinuxLinux
Linux
 

Similaire à Linux file system

Similaire à Linux file system (20)

Files and directories in Linux 6
Files and directories  in Linux 6Files and directories  in Linux 6
Files and directories in Linux 6
 
Operating System
Operating SystemOperating System
Operating System
 
Os
OsOs
Os
 
File system hiearchy
File system hiearchyFile system hiearchy
File system hiearchy
 
Unix operating system architecture with file structure
Unix operating system architecture with file structure Unix operating system architecture with file structure
Unix operating system architecture with file structure
 
LinuxTraining_26_Sept_2021.ppt
LinuxTraining_26_Sept_2021.pptLinuxTraining_26_Sept_2021.ppt
LinuxTraining_26_Sept_2021.ppt
 
Linux fundamentals
Linux fundamentalsLinux fundamentals
Linux fundamentals
 
linux file system
linux file systemlinux file system
linux file system
 
Linux file system
Linux file systemLinux file system
Linux file system
 
File system discovery
File system discovery File system discovery
File system discovery
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Unix1
Unix1Unix1
Unix1
 
12 introduction to Linux OS
12 introduction to Linux OS12 introduction to Linux OS
12 introduction to Linux OS
 
12-introductiontolinuxos-190907073928
12-introductiontolinuxos-19090707392812-introductiontolinuxos-190907073928
12-introductiontolinuxos-190907073928
 
Edubooktraining
EdubooktrainingEdubooktraining
Edubooktraining
 
Linux fs structure (1)
Linux fs structure (1)Linux fs structure (1)
Linux fs structure (1)
 
Linux
LinuxLinux
Linux
 
Unix Administration
Unix AdministrationUnix Administration
Unix Administration
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 

Plus de Md. Tanvir Hossain (14)

Automated train
Automated trainAutomated train
Automated train
 
Captcha
CaptchaCaptcha
Captcha
 
Adjusting the accounts
Adjusting the accountsAdjusting the accounts
Adjusting the accounts
 
Segmentation
SegmentationSegmentation
Segmentation
 
Normalization
NormalizationNormalization
Normalization
 
Application of interpolation in CSE
Application of interpolation in CSEApplication of interpolation in CSE
Application of interpolation in CSE
 
Internet(Internetwork)
Internet(Internetwork)Internet(Internetwork)
Internet(Internetwork)
 
Basic Biocomputing
Basic BiocomputingBasic Biocomputing
Basic Biocomputing
 
Intel core i3 processor
Intel core i3 processorIntel core i3 processor
Intel core i3 processor
 
Satellite communication and it's future
Satellite communication and it's futureSatellite communication and it's future
Satellite communication and it's future
 
Introduction to Object Oriented Programming
Introduction to Object Oriented ProgrammingIntroduction to Object Oriented Programming
Introduction to Object Oriented Programming
 
Introduction to JAVA
Introduction to JAVAIntroduction to JAVA
Introduction to JAVA
 
Java interface
Java interfaceJava interface
Java interface
 
Java exception handling
Java exception handlingJava exception handling
Java exception handling
 

Dernier

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterMateoGardella
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...KokoStevan
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 

Dernier (20)

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Gardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch LetterGardella_PRCampaignConclusion Pitch Letter
Gardella_PRCampaignConclusion Pitch Letter
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
SECOND SEMESTER TOPIC COVERAGE SY 2023-2024 Trends, Networks, and Critical Th...
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 

Linux file system

  • 2. Linux  The Linux kernel is an open-source monolithic unix-like computer operating system kernel.  Its basic design from principles established in Unix during the 1970s and 1980s.  Linux is a small UNIX system. Version 1.0 released in 1994, 2.2 in 1999.  Today used on 7-10 million computers corporate computer network and Web servers . 2
  • 3. What is a File System File System is responsible for storing information on disk and retrieving and updating this information. Example : FAT16, FAT32, NTFS ext2, ext3 ,ext4…  In Linux everything is file. 3
  • 4. Types of File System  Network File System NFS SMB  Disk File System ext2 ext3 FAT32 NTFS 4
  • 5. Network File System Network File System are physically somewhere else, but appear as if they are mounted on one computer.  NFS It was developed by Sun.  SMB It was developed by Microsoft. 5
  • 6. Physical Structure on the Disk  Boot Block : information needs to boot the system  Super Block : File System Specifications Size Max. number of files Free blocks Free inodes  inode List  Block List : The files data 6 Boot block supper block Inode list Block list
  • 7. In operation, Linux Kernel need to know 7 Where those data are store. How it can be access. And where we save the new data.
  • 8. Second standard file system (ext2) 1993 Maximum file size : 2TB Maximum volume size: 8 TB File name size: 255 characters Supports: POSIX permissions File compression 8
  • 9. THIRD standard file system (ext3) Maximum file size : 2TB Maximum volume size: 2 TB File name size: 255 characters Supports: POSIX permissions File compression include a journal entry (PENDING) 9
  • 10. RISAR FILE SYSTEM User Journaling Maximum file size : 8 TB Maximum volume size: 16 TB 10
  • 11. FOURTH standard file system (ext4) Maximum file size : 16TB Maximum volume size: 1 EXA-BYTE Maximum NUMBER OF file: 4 BILION Supports: POSIX permissions File compression include a USER journal entry 11
  • 12.  In Linux, all files and directories are located in a tree-like structure. The topmost directory is referred to as the file system root  # Current directory (.) # Parent directory (…) 12
  • 13. Absolute path vs. Relative path 13
  • 14. Linux two-part file system software implementation 14 The first part of this two-part implementation is the Linux virtual file system
  • 16. 16 /boot Contains the static bootloader and kernel executable and configuration files required to boot a Linux computer. /dev This directory contains the device files for every hardware device attached to the system. These are not device drivers, rather they are files that represent each device on the computer and facilitate access to those devices. / (root filesystem) The root filesystem is the top-level directory of the filesystem. It must contain all of the files required to boot the Linux system before other filesystems are mounted. It must include all of the required executables and libraries required to boot the remaining filesystems /bin The /bin directory contains user executable files. Brief Description
  • 17. 17/etc Contains the local system configuration files for the host computer /home Home directory storage for user files. Each user has a subdirectory in /home. /lib Contains shared library files that are required to boot the system. /media A place to mount external removable media devices such as USB thumb drives that may be connected to the host. /mnt A temporary mountpoint for regular filesystems (as in not removable media) that can be used while the administrator is repairing or working on a filesystem. /opt Optional files such as vendor supplied application programs should be located here.
  • 18. 18 /sbin System binary files. These are executables used for system administration. /tmp Temporary directory. Used by the operating system and many programs to store temporary files. Users may also store files here temporarily. Note that files stored here may be deleted at any time without prior notice. /usr These are shareable, read-only files, including executable binaries and libraries, man files, and other types of documentation. /var Variable data files are stored here. This can include things like log files, MySQL, and other database files, web server data files, email inboxes, and much more.
  • 20. Basic Command 20 To see what a directory contain with all of hidden file Ls –al or ls -a
  • 21. Mounting 21 The mount command mounts a storage device or filesystem, making it accessible and attaching it to an existing directory structure. Syntax: $ mount -t type file-system mount-point added a disk /dev/sdb on /data directory $ mount -t ext4 /dev/sdb /data
  • 22. Unmounting 22 The unmount command "unmounts" a mounted filesystem. Run unmount command with disk name or mount point name to unmount currently mounted disk. Syntax: $ umount /dev/sdb $ umount /data