nerdexam
CompTIA

XK0-001 · Question #269

Which of the following commands creates a tar file called back.tar that contains all files ending with extention ".c" in the current directory?

The correct answer is C. tar cvf back.tar *.c. See the full explanation below for the reasoning.

Question

Which of the following commands creates a tar file called back.tar that contains all files ending with extention ".c" in the current directory?

Options

  • Atar back.tar *.c
  • Btar xvf | *.tar *.c
  • Ctar cvf back.tar *.c
  • Dtar cvzf | *.tar *.c

How the community answered

(30 responses)
  • A
    3% (1)
  • B
    10% (3)
  • C
    70% (21)
  • D
    17% (5)

Community Discussion

No community discussion yet for this question.

Full XK0-001 Practice