-   Linux - Newbie (
-   -   cp command question (

satimis 09-13-2003 09:20 PM

cp command question
Hi all folks,

What will be the correct syntax for 'cp' command to copy all files




1) asking for confirmation to overwrite
2) without asking for confirmation to overwrite

Any other command/commands applicable, more convenient?

Thanks in advance.

B .R.

peace 09-13-2003 09:31 PM

cp -i /home/USER/download/* /etc/application


cp /home/USER/download/* /etc/application


man cp

To see the different options you can have with cp.

EDIT: Just a bit of clarification, the -i option prompts you before you overwrite. Omitting it, of course, does not prompt you before you overwrite.

All times are GMT -5. The time now is 07:09 PM.