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".
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, 6 months agosasquatchshrimp
Highly Voted 3 years, 9 months agoJay987654
Most Recent 8 months, 3 weeks agoTacosInMyBelly
9 months, 2 weeks agoemigrin14
11 months, 3 weeks agoNunjamin
4 years, 7 months agoWaldoWhereAmI
4 years, 6 months ago