Multiple choice technology

The command to remove a file of type “d” in the current directory and in its sub directories

  1. rm

  2. rmdir

  3. grep

  4. find

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This question is poorly worded. It asks to 'remove' but find only locates files. To actually remove directories of type d recursively, you'd use 'find . -type d -delete' or 'find . -type d -exec rm -rf {} +'. Among the options, find is the only one that can locate files by type, though it doesn't remove by itself.