- 2073 Bhadra · 3.5 marks
Short note: UNIX file system
Short answer
UNIX uses a hierarchical tree with a single root, where everything is a file (regular, directory, device). I-nodes hold metadata and block pointers (direct, indirect). Features: mounting to unify trees, hard and symbolic links, 9‑bit permissions, and buffer cache.
Write a short note on UNIX file system.
The UNIX file system is a hierarchical, tree-structured file system with a single root /. Everything is a file: ordinary files, directories and special (device) files, so the same system calls (open, read, write, close) are used for files and I/O devices.
Main features:
- Hierarchical directories: a directory is a file containing (name, i-node number) entries; path names can be absolute (
/usr/bin/ls) or relative;.and..refer to the current and parent directory. - I-nodes: each file has an i-node with attributes and block addresses (10 direct, single, double and triple indirect pointers), so large files are supported and access is efficient.
- Disk layout: boot block, superblock, i-node list, data blocks.
- Mounting: other file systems are attached to a directory with
mount, giving one unified tree. - Links: hard links (several names for one i-node) and symbolic links.
- Protection: 9 permission bits (read, write, execute for owner, group, others), plus the set-UID, set-GID and sticky bits.
- File types: regular, directory, character special, block special, pipe/FIFO, socket.
- A buffer cache is used for performance, and free blocks are managed by a free list or bit map.
/
+------+------+
bin usr dev
| | |
ls +--+--+ tty0
bin lib
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- File system layout, i-node, backup · Operating System, chapter 5
- File system layout; i-node vs linked list · Operating System, chapter 5
- Linked list file system; block size impact · Operating System, chapter 5
- File system layout; interface vs implementation · Operating System, chapter 5
- File system layout; free block management · Operating System, chapter 5
- File system layers; linked list vs index · Operating System, chapter 5
- Google File System architecture · Big Data Technologies, chapter 2 · asked 2×
- File system handling of kernel · Embedded System, chapter 6
- File size: 60 s, 44.1 KHz, 8-bit stereo · Multimedia System, chapter 2 · asked 3×
- File size: 30 s, 44.1 KHz, 8-bit stereo · Multimedia System, chapter 2 · asked 3×