Introduction
Announcements

Schedule
Labs
Assignments
TA office hours

Tests, exam

Topic videos
Some course notes
Extra problems
Lecture recordings

Discussion board

Grades so far

a) Indicate the link count for each of these files:

Solution:
handout: 2   (the link in the a2 directory, and '.' in the handout directory)
starter: 3   (the link in the a2 directory, '.' in the starter directory, and '..' in splitexpr)
soln: 2   (the link in the a2 directory, and '.' in the soln directory)
wfold.c: 1

b) Suppose the user is cd'd to the handout directory and types:

	ln a2.pdf example.pdf
Which file(s) will change their link count, and what will the link count(s) be now?

Solution: a2.pdf's link count will change from 1 to 2
(because there are two links to it; no changes are involved in links to directories)

c) Suppose the user is cd'd to the soln directory and types:

	mkdir new
Which file(s) will change their link count, and what will the link count(s) be now?

Solution: soln's link count will change to 3
(because it is now also linked in as ".." in the new directory)


[press 'back' in your web browser to return to where you were in the exam]