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.