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)

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


Comments