nerdexam
CompTIA

LX0-101 · Question #265

You have read/write permission on an ordinary file foo. You have just run In 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 In 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 beremoved, 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

(55 responses)
  • A
    11% (6)
  • B
    80% (44)
  • C
    5% (3)
  • D
    2% (1)
  • E
    2% (1)

Community Discussion

No community discussion yet for this question.

Full LX0-101 Practice