LPI
101-500 · Question #307
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 whilebar would remain accessible. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
GNU and Unix Commands
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 whilebar 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
(27 responses)- B93% (25)
- C4% (1)
- E4% (1)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#hard links#inode#rm command#reference counting
Community Discussion
No community discussion yet for this question.