Question discussion

What will be the output of the Linux shell command ‘rm doc*’?

3333Medium DSSSB TGT Computer Science 0 replies

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’
Correct answer: A

Explanation

‘rm doc*’ removes (erases) all files whose names begin with ‘doc’.

Discussion 0

Nobody has replied yet. Start the discussion!