LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2007, 09:32 AM   #1
healthweb
LQ Newbie
 
Registered: Apr 2006
Location: Nevada
Distribution: RHEL, FC, BT, Knoppix
Posts: 7

Rep: Reputation: 0
Copy & Move Commands (Issue)


I am updating a Joomla installation. Trying to copy updates to existing directories and files but keep getting prompted as with -i flag.

Tried from /home/user to copy directory foo to /var/www/html and overwrite existing foo directory

Using cp -f -p -r foo /var/www/html but get prompted on each file being copied. What is the correct command with either mv or cp to copy over existing files with updates ones without being prompted?


Many thanks,

Healthweb
 
Old 02-21-2007, 09:37 AM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Are you sure you are using (for example) the "real" mv and not alias or something? I use a SunOS every day where rm is aliased to rm -i to prevent accidents, and to get past the interactive questions (which do pop up even with force switch) I have to use full path; in your case try
Code:
/bin/mv -r /home/user/foo/ /var/www/
and see if it helps. If it doesn't, then it's obviously something else.
 
Old 02-21-2007, 05:21 PM   #3
healthweb
LQ Newbie
 
Registered: Apr 2006
Location: Nevada
Distribution: RHEL, FC, BT, Knoppix
Posts: 7

Original Poster
Rep: Reputation: 0
That doesn't work. This has me stumped...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete/move/copy files of specific date imsajjadali Red Hat 26 11-08-2013 12:34 AM
move/copy command Cyberian Linux - Newbie 1 11-23-2004 07:50 AM
KDE 3.2 - How to get the Move to & Copy to Context Menus? muzicman82 Linux - Software 0 02-16-2004 05:32 AM
how to move and copy files.... JMK Linux - Newbie 3 01-22-2004 05:57 PM
can move but not copy matt Linux - General 3 08-01-2001 08:08 AM


All times are GMT -5. The time now is 06:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration