Services and User Management
Running rmdir /var/tmp/old fails with "Directory not empty". The administrator has confirmed that the directory and everything in it are no longer needed and must remove all of it in one command without being prompted for each file. Which command does this?
Show the answer
Correct answerA. rm -rf /var/tmp/old
rm -rf removes the directory and everything beneath it recursively, and -f suppresses prompts. rm -d only removes empty directories, so it fails here just as rmdir does. rmdir -p only removes empty parent directories as well.