What would happen if you ran rm foo?

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?

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?

A.
foo and bar would both be removed.

B.
foo would be removed while bar would remain accessible.

C.
foo would be removed. bar would still exist but would be unusable.

D.
Both foo and bar would remain accessible.

E.
You would be asked whether bar should be removed.



Leave a Reply 0

Your email address will not be published. Required fields are marked *