LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-27-2009, 06:12 PM   #1
craig_panama
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Rep: Reputation: 0
Which command line command for updating a folder


I'm trying to update a folder and it's sub folders with an update of a blog engine.

I'm doing this log distance using VNC. I "cannot" be interactive, that is giving the ok to each file. My connection is too flaky. I need this to happen recursively.

I thought I could use cp -ruf x-source/* /y-destination
but it keeps responding interactively??

Do I use the mv? but I don't see a "recursive" option for it? or does "mv" automatically move files recursively .. oh and I want to leave the source intact, I don't want it actually moving but copying the files from the source to the destination.

How do I do this?
 
Old 06-27-2009, 06:40 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,050

Rep: Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971
You shouldn't need to respond - check you don't have an alias forcing -i
 
Old 06-27-2009, 06:58 PM   #3
craig_panama
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Original Poster
Rep: Reputation: 0
huh what? I'm not using -i (that's for interactive ..no?)
or
"alias" what's that and how do I deal with it?
 
Old 06-27-2009, 07:17 PM   #4
chuckbuhler
Member
 
Registered: Oct 2005
Distribution: SuSe
Posts: 95

Rep: Reputation: 17
type alias at a command prompt and it should list what alias' you have defined. Those are defined in your .bashrc file or in /etc/bashrc.
 
Old 06-28-2009, 05:41 PM   #5
craig_panama
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Original Poster
Rep: Reputation: 0
yes????
cp = cp -i

How did that get in there????

thanks

Last edited by craig_panama; 06-28-2009 at 07:40 PM.
 
Old 06-28-2009, 07:36 PM   #6
craig_panama
LQ Newbie
 
Registered: Dec 2007
Posts: 12

Original Poster
Rep: Reputation: 0
blank

Last edited by craig_panama; 06-28-2009 at 07:43 PM.
 
Old 06-28-2009, 08:11 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,050

Rep: Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971Reputation: 971
Distros ship them sometimes - do your command as "\cp ..." to use the real command, not the alias.
 
  


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
command line updating? bigmacbb63 Mandriva 2 01-14-2007 04:22 AM
remove folder from command line demmylls Linux - General 3 02-15-2004 09:52 AM
updating RH9 with command line and without GUI vincep Linux - General 4 09-30-2003 02:08 PM
Updating the Kernel unsing command line aneikei Linux - Newbie 1 08-05-2003 03:52 PM
updating via the command line computergirl Linux - General 2 07-11-2003 06:42 PM


All times are GMT -5. The time now is 02:16 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration