Move cp to common

All `cp` examples works on the Linux and SunOS.