QuestionQ25

VerifiedThe Power of the Command Line

A directory includes these three files:

texts 1.txt  
texts 2.txt  
texts 3.csv  

Which command copies the two files that end in .txt to the /tmp/ directory?

Explanation

In shell pathname expansion, * matches any sequence of characters. Therefore, *.txt matches both .txt files while excluding texts 3.csv.

Community Discussion

No comments yet. Be the first to start the discussion!