Question 112Asked in DSSSB TGT Computer Science, 25 Jun 2023, Shift 3 (4:30 PM)

Which of the following shell symbols matches a class of characters in filenames in a Linux shell command?

  1. A;
  2. B?
  3. C[]
  4. D*
Show answerHide answer

Correct answer: (C) []

Explanation

Square brackets [ ] match any one character from a set or range, such as [abc] or [0-9]. * matches any string, ? matches any one character and ; separates commands.

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

This is question 112 of DSSSB TGT Computer Science PYQ, 25 Jun 2023, Shift 3 (4: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.