Multiple choice unix

Which command is used to remove a file?

  1. remove

  2. rm

  3. mv

  4. del

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

rm (remove) is the standard UNIX command to delete files. mv moves or renames files, remove is not a valid command, and del is not standard UNIX (it's a DOS command).

AI explanation

Correct answer: rm (in a Unix/Linux shell context). rm removes files; mv moves/renames files (doesn't delete); del is the Windows/DOS command, not Unix; 'remove' isn't a real shell command. Given the empty <pre class="code"> block, this is clearly framed as a Unix/Linux command-line question.