Schedule
Labs
Assignments
TA office hours
Topic videos
Some course notes
Extra problems
Lecture recordings
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).
2 | d | . 2, .. 2, usr 8, etc 4, bin 7 |
3 | - | |
4 | d | . 4, .. 2, passwd 3 |
5 | - | |
6 | d | . 6, .. 8, fsys.fig 5, src 21 |
7 | d | . 7, .. 2, date 18 |
8 | d | . 8, .. 2, bin 9, ajr 6, you 22 |
9 | d | . 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.)
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.