LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cp command question (https://www.linuxquestions.org/questions/linux-newbie-8/cp-command-question-92507/)

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

From
/home/USER/download/

To

/etc/application/

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.
satimis

peace 09-13-2003 09:31 PM

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

OR

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

Try:

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.