Multiple choice

Which of the following commands is used to delete files in UNIX?

  1. $ mv chap1 chap2
  2. $ rm chap1 chap2
  3. $ cp chap1 chap2
  4. $ cat dept.1st
  5. None of these

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

rm command deletes one or more files.