LPI
101-350 · Question #107
You have read/write permission on an ordinary file foo. You have just run ln foo bar. What would happen if you ran rm foo?
The correct answer is B. foo would be removed while bar would remain accessible. See the full explanation below for the reasoning.
Question
You have read/write permission on an ordinary file foo. You have just run ln foo bar. What would happen if you ran rm foo?
Options
- Afoo and bar would both be removed.
- Bfoo would be removed while bar would remain accessible.
- Cfoo would be removed. bar would still exist but would be unusable.
- DBoth foo and bar would remain accessible.
- EYou would be asked whether bar should be removed.
How the community answered
(57 responses)- A14% (8)
- B72% (41)
- C2% (1)
- D9% (5)
- E4% (2)
Community Discussion
No community discussion yet for this question.