What is a typed command — CCA-F Exam Prep

×
L0.260
REAL STORYTerminal showing 'rm -rf / home/user/trash' with a red circle around the space between '/' and 'home'. The '/' is highlighted in red. Caption: 'One space. Everything gone.' Dark terminal background.

A developer meant to delete a trash folder. He deleted everything.

He meant to type: rm -rf /home/user/trash. He typed: rm -rf / home/user/trash. One extra space. The computer saw two targets: '/' (the entire filesystem) and 'home/user/trash'. It deleted the entire filesystem first.