010-160 Exam QuestionsBrowse all questions from this exam

010-160 Exam - Question 70


Which of the following commands creates the ZIP archive poems.zip containing all files in the current directory whose names end in .txt?

Show Answer
Correct Answer: C

To create a ZIP archive containing all files in the current directory whose names end in .txt, you use the 'zip' command followed by the name of the archive you want to create and then the files to include. The correct syntax for this command is 'zip [archive name] [files to include]'. Therefore, 'zip poems.zip *.txt' is the correct command to achieve this.

Discussion

2 comments
Sign in to comment
sasquatchshrimpOption: C
Dec 13, 2020

This is correct, you zip, then name the file, then specify the files with a wildcard if they are all the same type of file.

hardware69Option: C
Jan 12, 2024

C: Correct zip archivename.zip filename1 filename2 filename3