Introduction
Announcements

Schedule
Labs
Assignments
TA office hours

Tests, exam

Topic videos
Some course notes
Extra problems
Lecture recordings

Discussion board

Grades so far

Problem:

Sketch the inode and directory information involved in the following output from an "ls -liR" of the directory which is inode number 10. ('R' is "recursive", and 'i' is "list inode numbers" (which appear in the left column, i.e. the numbers which are 12 through 15 below)).

That is, list the inode numbers and what data you know is in those inodes; and state the contents of the directories involved.

	total 8
	12 drwxr-xr-x  3 ajr  users 4096 Feb 27 10:05 bar
	13 drwxr-xr-x  3 ajr  users 4096 Feb 27 10:05 baz

	./bar:
	total 8
	14 -rw-r--r--  1 ajr  users   20 Feb 27 10:06 gar

	./baz:
	total 8
	15 -rw-r--r--  1 ajr  users   50 Feb 27 10:06 gaz

Solution:

Inodes:

10D???
12Drwxr-xr-x, ajr, users, Feb 27, etc
13Drwxr-xr-x, ajr, users, Feb 27, etc
14 rw-r--r--, ajr, users, Feb 27, etc
15 rw-r--r--, ajr, users, Feb 27, etc

Contents:

10. 10, .. ??, bar 12, baz 13
12. 12, .. 10, gar 14
13. 13, .. 10, gaz 15
14contents of gar file
15contents of gaz file


[back to CSC 209 problems about the unix filesystem]