DSA Factory
Free Files and disks lessonsFiles and disks · Stage 0 · Files · Step 1

Files and directories

See what a file is to the OS, how directories turn names into files, and what opening a path really does. About 12 minutes.

Quick check

A file has two hard links. One name is deleted. What happens to the file's data?

  1. AIt stays, reachable through the other name
  2. BIt is deleted, and the other name becomes dangling
  3. CThe data is copied to a new place
Show the answer

It stays, reachable through the other name. The data is only freed when the link count reaches zero.

Lock it in

4 questions on this idea

Short questions that apply the idea to new cases: trace it, work out a number, put steps in order. A wrong answer explains itself.

Answer them in your browserFree account, no card. Your progress is saved, and the idea comes back in a quick review later.
Sign up free to solve