Introduction
Announcements

Schedule
Labs
Assignments
TA office hours

Tests, exam

Topic videos
Some course notes
Extra problems
Lecture recordings

Discussion board

Grades so far

5.

Here is a portion of a unix filesystem. Like the "ls -l" output, we list whether the file (inode) is a plain file, directory, etc, with '-' for plain file or 'd' for directory. In the case of directories, the table also states the data content of the directory itself (a list of pairs of name and inode number).

2d. 2, .. 2, usr 8, etc 4, bin 7
3- 
4d. 4, .. 2, passwd 3
5- 
6d. 6, .. 8, fsys.fig 5, src 21
7d. 7, .. 2, date 18
8d. 8, .. 2, bin 9, ajr 6, you 22
9d. 9, .. 8
10  
11  
12  

a) Suppose I do "mkdir /usr/ajr/newdir". Write in all changes/additions to the above list. (There are some free inodes at the end for you to use for new files.)

Solution:


b) Suppose that my current directory is /usr/ajr and I do "ln fsys.fig more.fig". Write in all changes/additions to the above list.

Solution:

[that's all]


[sample midterm from Fall 2012]