Winter Semester 2026–27 · VIT-AP · BACSE106 · Operating Systems · Dr. Krithika L.B

File system concepts

Attributes, operations and access methods, interactively.

Module 4 Session 4.7 Lesson 1 of 1

File-System Concepts

A file is a named persistent byte stream plus metadata. A directory maps names to file numbers (inodes).

Attributes vs data

Metadata lives in the inode: size, owner, times, permissions, block pointers. The directory entry is just a name → inode number. Two names to one inode is a hard link. A symbolic link is a small file holding a path.

  • open / read / write / lseek / close act on an open-file object (offset, flags) reached from a file descriptor.
  • stat / chmod / chown / unlink act on the inode / directory.
  • Path lookup walks directories from a root (or cwd).

Resolve a path

Tree: / → home (inode 4) → a.txt (inode 17) and a.txt also linked as /tmp/note.