Unix - Engineering

Q1:

Which command is used to copy all files having the string chap and any two characters after that to the progs directory?

A cp chap?? progs

B cp chap* progs

C cp chap[12] /progs/*.*

D cp chap?? /progs/*

E None of the above

ANS:A - cp chap?? progs

@Mahesh.

Check chap length it should be 6. Then chap? will work.

You used chap* for this length not matters.