LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 08: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, 08: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, 04: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



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-07-2013 11:34 PM
move/copy command Cyberian Linux - Newbie 1 11-23-2004 06:50 AM
KDE 3.2 - How to get the Move to & Copy to Context Menus? muzicman82 Linux - Software 0 02-16-2004 04:32 AM
how to move and copy files.... JMK Linux - Newbie 3 01-22-2004 04:57 PM
can move but not copy matt Linux - General 3 08-01-2001 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:46 PM.

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
Open Source Consulting | Domain Registration