File management in Unix interview questions

Total available count: 12
Subject - Operating System
Subsubject - File management in Unix

How does the inode map to data block of a file?

Inode has 13 block addresses.

The first 10 are direct block addresses of the first 10 data blocks in the file.

The 11th address points to a one-level index block.

The 12th address points to a two-level (double in-direction) index block.

The 13th address points to a three-level(triple in-direction)index block.

This provides a very large maximum file size with efficient access to large files, but also small files are accessed directly in one disk read.

Next 5 interview question(s)

How do you change File Access Permissions?
How do you create special files like named pipes and device files?
What are links and symbolic links in UNIX file system?
What are the Unix system calls for I/O?
What is a FIFO?