Question 168Asked in DSSSB TGT Computer Science, 25 Jun 2023, Shift 1 (8:30 AM)What will be the output of the Linux shell command 'rm doc*'?
- AErase all files beginning with the pattern 'doc'
- BErase all files ending with the pattern 'doc'
- CList filenames ending with the pattern 'doc'
- DList filenames beginning with the pattern 'doc'
Show answerHide answer
Correct answer: (A) Erase all files beginning with the pattern 'doc'
Explanation
In doc* the * matches any characters, so rm doc* deletes all files whose names begin with 'doc'.