Itlxa0 - Lesson 2 1
Itlxa0 - Lesson 2 1
ITLXA0
LESSON 2
OVERVIEW
• The Three Main Parts of the Linux File System
• File Types
• File Names
• Directory Files
• The Directory Structure
• Searching for Files
The Three Main Parts of the Linux File System
• Super Block:
• Describes the state of the file system
• State how large it is, how many maximum files it can accommodate, how
many more files can be created, etc.
• Inode Table:
• The information related to all the files(not the contents) is stored in an Inode
Table on the disk
• For each file, there is an Inode Entry in the table
• Each entry is made up of 64 bytes and contains the details for that file
• These Details are:
a) Owner of the file
b) Group to which the owner belongs
c) Type of file
d) File access permission
e) Date and Time of last access
f) Size of the file
g) Addresses of block where the file is physically present
h) Number of links to the file
• Data Blocks
• Contains the actual file contents
• An allocated block can belong to only one file in the file system
• This block can’t be used for storing any other file’s contents unless the file to
which it originally belonged to is deleted
File Types
• Text files:
• Normally contain configuration information.
• Directory Files:
• Files that serve as storage space to organise other files.
• Special Device files:
• Important file for system administrators as they represent various system
devices, eg HD or serial ports
• Binary data files
o Program files are normally associated with binary data files, which store information
such as functions and graphics.
• Linked Files
o Files that are associated with one another, i.e they point to another file(shortcut
file), or they represent the same dat.
• Executable program files
o These exist on the HD until they are executed in memory to become processes
• Named pipes:
o Identify the channel that passes information from one process in memory to
another
• Socket file
o A type of named pipe that allows a process on another computer to write to a file
on the local computer while another process reads from that file.
File Names
• Files are recognised by their file names. Linux files names consists of
alphanumeric characters, underscores(_), dashes or hyphens(-) and
full stop characters(.)
• Files that begin with a dot(.) are called hidden files, which require a
special command to be executed.
Directory Files
• These are the common top-level directories associated with the root directory:
• Some other directories in the Linux system:
Some other directories in the Linux system:
The Linux Directory Structure
END OF LESSON 2