Multiple choice

To remove a directory in UNIX, we use

  1. rd

  2. rm

  3. remove

  4. none of these

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

The rm (remove) command can delete directories when used with the -r (recursive) or -rf (recursive, force) flags. For removing empty directories specifically, rmdir exists but is less commonly used. The commands 'rd' and 'remove' are not standard UNIX utilities. Rm is the versatile choice for directory removal.