Schedule
Labs
Assignments
TA office hours
Topic videos
Some course notes
Extra problems
Lecture recordings
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:
10 | D | ??? |
12 | D | rwxr-xr-x, ajr, users, Feb 27, etc |
13 | D | rwxr-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 |
10 | . 10, .. ??, bar 12, baz 13 |
12 | . 12, .. 10, gar 14 |
13 | . 13, .. 10, gaz 15 |
14 | contents of gar file |
15 | contents of gaz file |