ExamVeda
Login
Home
This question belongs to Computer Science Unix
Unix
?

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

Answer & Solution
Correct Answer: Option A
In Unix, the cp command is used to copy files or directories. The pattern chap?? matches files with the string chap followed by any two characters. When followed by progs, it indicates that all files matching this pattern should be copied to the progs directory.
So, cp chap?? progs is the correct command to copy all files having the string chap and any two characters after that to the progs directory.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.