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

$ apropos cp
cp (1)               - copy files and directories

rtfm!

@Watael: It is not very useful to suggest reading the manual on a command you dont yet know. The point of the question was to determine cp; not to ask how to use it.
Perhaps something along the lines of: "cp or mv will copy or move files, respectively. If you'd like more information on either you can run the command apropos. For example: apropos cp will give you information on how to use the cp command.

yes, I'd better tell him to stfw "how to copy files"

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.