Multiple choice technology databases

What is UNIX equalent of deltree (MS-DOS) command.

  1. rem

  2. ls

  3. rm -R

  4. del

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

In MS-DOS, 'deltree' is used to delete a directory and all its subdirectories and files. The Unix equivalent is 'rm' (remove) with the '-R' or '-r' (recursive) flag, which instructs the command to descend into directories and remove their contents.