Intro to File System
Intro to File System
By
Ankan Bhowmik
Dept of BCA,M.Sc(CS)
Introduction
• What is File System?
– The abstraction used by kernel to represent and
organize the storage resources.
• UNIX File System in general
– File system is organized in tree structure.
– File tree can be arbitrarily deep.
– File name must NOT LONGER than 256 chars.
– Single path name must NOT LONGER than 1023
chars.
Creating File System
• Regular Files
– binary
• GIF, JPEG, Executable etc.
– text
• scripts, program source code, documentation
– Supports sequential and random access
Types of Files (cont.)
• Directory
– Can contain ANY kind of files
• Device File
– Allows programs to communicate with
hardware.
– Kernel modules handles device management.
Types of Files (cont.)
• Sticky Bit
– Not very popular in today’s system
– If a directory has sticky bit set, then only the
owner can remove file from the directory.
– /tmp is a good example.
Types of Files (cont.)