Command line · Question 11 of 12

A script runs rm -rf $FOLDER/, but $FOLDER is empty. What happens?

1 answer is correct. Hard

Show answer

Answer

  • B It hits /

Explanation

An empty $FOLDER turns into rm -rf /. -f suppresses questions. That is why variables are checked beforehand and absolute, verified paths are used where possible.

Certifications & exams

Which exam comes next?

You can already practise for 19 exams, and 21 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications