command to copy file and buffer