A directory contains the following three files: texts 1.txt texts 2.txt texts 3.csv Which command copies the two files ending in .txt to the /tmp/ directory?
The correct answer is B!
B - "cp *.txt /tmp/" is the command for copying all files ending in ".txt" to the "/tmp/" directory.
This is a wildcard match, which means that any file in the current directory with a ".txt" extension will be copied.
Both B and D results in the same solution. Considering both 1.txt and 2.txt has exactly one character before ".txt", the question mark ? in answer D results in matching those two files in the resolution. That being said, the aserisk * in answer B also matches AT LEAST 1 character before ".txt".
This section is not available anymore. Please use the main Exam Page.010-160 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Styles
Highly Voted 4 years, 7 months agosasquatchshrimp
Highly Voted 3 years, 10 months agoe5c1bb5
Most Recent 1 week, 2 days agoJay987654
9 months, 3 weeks agoTacosInMyBelly
10 months, 3 weeks agoemigrin14
1 year agoNunjamin
4 years, 8 months agoWaldoWhereAmI
4 years, 7 months ago