LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-05-2002, 12:52 PM   #1
andy18
Member
 
Registered: Oct 2002
Location: Malaysia
Posts: 106

Rep: Reputation: 15
Forceful copy


Hello,

I am working on SSH and was trying to copy some files from my other folder to one folder.

I type the following command :

cp -Rf /home/.... /home/abc/123

But it still keep prompting to ask my confirmation on whether to overwrite the files on /123 directory.I wish to directly overwrite the files without any confirmation.

Can some one tell me the command to do so?


Thanks.



Andy
 
Old 11-05-2002, 03:31 PM   #2
finegan
LQ Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 72
cp -r will get rid of the -i that's in there, or you can just take a look at your /etc/profile script, or .bash_profile, .profile, or .basrc you've got that has cp aliased to cp -i

cp -r can get nasty though, it follows symbolic links in stupid ways and can hang a machine if there's something still writing to a file say... there's an uber-cool option to cp now if this is a backup, try a simple:

cp -a
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I copy bograt Linux - General 1 03-05-2005 04:08 PM
how to copy and paste acd copy cd paschim Linux - General 2 04-05-2004 09:25 AM
How to copy whole CD? sikandar Linux - Software 5 09-01-2003 01:38 AM
boot error after using Copy Commander to copy debian system onto larger new drive Interceptor Linux - Hardware 7 05-04-2003 12:40 PM
how to copy a cd safrout Linux - General 6 05-08-2002 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:08 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