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.
A file has two hard links. One name is deleted. What happens to the file's data?
- AIt stays, reachable through the other name
- BIt is deleted, and the other name becomes dangling
- 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.
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