2
Most read
16
Most read
17
Most read
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

More Related Content

PPTX
Linux fundamentals
PPT
Linux Administration
PPTX
Linux standard file system
PPT
Basic command ppt
ODP
Introduction to Shell script
PDF
Linux systems - Linux Commands and Shell Scripting
PPTX
Filepermissions in linux
PDF
Introduction to the linux command line.pdf
Linux fundamentals
Linux Administration
Linux standard file system
Basic command ppt
Introduction to Shell script
Linux systems - Linux Commands and Shell Scripting
Filepermissions in linux
Introduction to the linux command line.pdf

What's hot (20)

PPT
Linux file system
PPT
Linux file system
PPT
Linux basics
PPT
Linux command ppt
PPT
Linux architecture
PPTX
Linux Boot Process
PPTX
Introduction to Unix
PPTX
Linux commands
PDF
Lesson 2 Understanding Linux File System
PPT
Shell Scripting
PPT
Unix File System
PPT
Linux - Introductions to Linux Operating System
PPT
Operating system services 9
PDF
Linux basic commands with examples
PDF
Shell scripting
PPTX
Presentation on samba server
PPT
A Quick Introduction to Linux
PPTX
User management
PPTX
Linux basic commands
PDF
Presentation on linux
Linux file system
Linux file system
Linux basics
Linux command ppt
Linux architecture
Linux Boot Process
Introduction to Unix
Linux commands
Lesson 2 Understanding Linux File System
Shell Scripting
Unix File System
Linux - Introductions to Linux Operating System
Operating system services 9
Linux basic commands with examples
Shell scripting
Presentation on samba server
A Quick Introduction to Linux
User management
Linux basic commands
Presentation on linux
Ad

Similar to Linux file system (20)

PDF
File systems for Embedded Linux
PPT
Linux fs structure (1)
PDF
File system discovery
PPT
Linux filesystemhierarchy
PDF
Linux file system
PDF
linux file system
PPTX
Files and directories in Linux 6
DOCX
Linux File System.docx
PPT
LinuxTraining_26_Sept_2021.ppt
PPT
101 4.1 create partitions and filesystems
DOCX
linux file sysytem& input and output
PPTX
Unix file system.pptx
PDF
Linux Directory Structure
PPT
linux-file-system01.ppt
ODP
File system hiearchy
PPT
Linux file system nevigation
PDF
Linux directory structure by jitu mistry
PDF
Course 102: Lecture 2: Unwrapping Linux
PPTX
File systems for Embedded Linux
Linux fs structure (1)
File system discovery
Linux filesystemhierarchy
Linux file system
linux file system
Files and directories in Linux 6
Linux File System.docx
LinuxTraining_26_Sept_2021.ppt
101 4.1 create partitions and filesystems
linux file sysytem& input and output
Unix file system.pptx
Linux Directory Structure
linux-file-system01.ppt
File system hiearchy
Linux file system nevigation
Linux directory structure by jitu mistry
Course 102: Lecture 2: Unwrapping Linux
Ad

More from Md. Tanvir Hossain (14)

PPTX
Automated train
PPTX
PPTX
Adjusting the accounts
PPTX
Segmentation
PPTX
Normalization
PPTX
Application of interpolation in CSE
PPTX
Internet(Internetwork)
PPTX
Basic Biocomputing
PPTX
Intel core i3 processor
PPTX
Satellite communication and it's future
PPTX
Introduction to Object Oriented Programming
PPTX
Introduction to JAVA
PPTX
Java interface
PPTX
Java exception handling
Automated train
Adjusting the accounts
Segmentation
Normalization
Application of interpolation in CSE
Internet(Internetwork)
Basic Biocomputing
Intel core i3 processor
Satellite communication and it's future
Introduction to Object Oriented Programming
Introduction to JAVA
Java interface
Java exception handling

Recently uploaded (20)

PDF
GSA-Past-Papers-2010-2024-2.pdf CSS examination
PDF
IS1343_2012...........................pdf
PDF
Physical pharmaceutics two in b pharmacy
PPTX
Unit1_Kumod_deeplearning.pptx DEEP LEARNING
PPTX
IT infrastructure and emerging technologies
PDF
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
PPTX
climate change of delhi impacts on climate and there effects
PPTX
UCSP Section A - Human Cultural Variations,Social Differences,social ChangeCo...
PDF
Unleashing the Potential of the Cultural and creative industries
PPTX
ENGlishGrade8_Quarter2_WEEK1_LESSON1.pptx
PDF
FAMILY PLANNING (preventative and social medicine pdf)
PPTX
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
PDF
African Communication Research: A review
PDF
LATAM’s Top EdTech Innovators Transforming Learning in 2025.pdf
PDF
faiz-khans about Radiotherapy Physics-02.pdf
PPTX
CHROMIUM & Glucose Tolerance Factor.pptx
PPTX
Copy of ARAL Program Primer_071725(1).pptx
PPSX
namma_kalvi_12th_botany_chapter_9_ppt.ppsx
PDF
FYJC - Chemistry textbook - standard 11.
PDF
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
GSA-Past-Papers-2010-2024-2.pdf CSS examination
IS1343_2012...........................pdf
Physical pharmaceutics two in b pharmacy
Unit1_Kumod_deeplearning.pptx DEEP LEARNING
IT infrastructure and emerging technologies
GIÁO ÁN TIẾNG ANH 7 GLOBAL SUCCESS (CẢ NĂM) THEO CÔNG VĂN 5512 (2 CỘT) NĂM HỌ...
climate change of delhi impacts on climate and there effects
UCSP Section A - Human Cultural Variations,Social Differences,social ChangeCo...
Unleashing the Potential of the Cultural and creative industries
ENGlishGrade8_Quarter2_WEEK1_LESSON1.pptx
FAMILY PLANNING (preventative and social medicine pdf)
pharmaceutics-1unit-1-221214121936-550b56aa.pptx
African Communication Research: A review
LATAM’s Top EdTech Innovators Transforming Learning in 2025.pdf
faiz-khans about Radiotherapy Physics-02.pdf
CHROMIUM & Glucose Tolerance Factor.pptx
Copy of ARAL Program Primer_071725(1).pptx
namma_kalvi_12th_botany_chapter_9_ppt.ppsx
FYJC - Chemistry textbook - standard 11.
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf

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