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

Identify the command that is used to delete files in Linux.

  1. Arm
  2. BRmdir
  3. CDelete
  4. DRdir
Show answerHide answer

Correct answer: (A) rm

Explanation

In Linux, the rm command deletes files (rm file.txt). rmdir removes only empty directories, and 'delete' and 'rdir' are not standard Linux commands.

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

This is question 157 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.