Question 176Asked in DSSSB TGT Computer Science, 25 Jun 2023, Shift 2 (12:30 PM)

Which command is used to remove a directory in Linux?

  1. ARm
  2. BDelete
  3. CErase
  4. DRm, Delete and Erase
Show answerHide answer

Correct answer: (A) Rm

Explanation

In Linux, directories are removed with rm -r (recursive), or with rmdir for empty ones. 'Delete' and 'Erase' are not Linux commands, so rm is the answer.

From DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 2 (12:30 PM)

This is question 176 of DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.