The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
no options nascimento.rp AIX 2 08-20-2006 02:46 PM
options terms5 UNIX for Dummies Questions & Answers 1 01-27-2006 01:50 AM
sed h and g options sivasenthil_k Shell Programming and Scripting 9 01-04-2006 09:21 AM
options with awk mips Shell Programming and Scripting 2 05-15-2004 03:33 AM
cat and wc options Laura01 Shell Programming and Scripting 1 09-08-2002 11:21 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-12-2001
milage milage is offline
Registered User
  
 

Join Date: Jul 2001
Posts: 5
cp options

Hello again,

Is there an option for the cp command to overwrite existing files in the destination directory?

Cheers

Rob
  #2 (permalink)  
Old 07-12-2001
kristy kristy is offline
Registered User
  
 

Join Date: May 2001
Location: Allentown, PA
Posts: 54
cp will automatically overwrite an existing file with the same name unless you use -i (interactive)
  #3 (permalink)  
Old 07-12-2001
yellowfish yellowfish is offline
Registered User
  
 

Join Date: Jul 2001
Location: California
Posts: 42
if you do have an alias set up for cp (i.e. alias cp "cp -i" )
and do not want to chage the alias

try put "\" before cp
i.e
$ \cp FileName newFileName
this will skip all interactive questions.
Hope this help
  #4 (permalink)  
Old 07-13-2001
kapilv kapilv is offline
Registered User
  
 

Join Date: Nov 2000
Location: India
Posts: 83
hi

to overwrite exsiting file give
cp filename1 filename2
in this case filename2 will be overwritten with the contents of filename1.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:45 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0