LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-25-2005, 06:59 PM   #1
latino
Member
 
Registered: Aug 2003
Location: Puerto Rico
Distribution: Centos 6.6
Posts: 142

Rep: Reputation: 15
Very weird cp not accepting -f nor --force


It is incredible. Anyone have seen this before??? Any hint ???

TIA

 
Old 02-25-2005, 08:12 PM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Rep: Reputation: 30
To where are you copying the file? Is the destination write-protected, or something like that?
Is it giving you any sort of feedback, or is the file simply not appearing?
 
Old 02-25-2005, 08:44 PM   #3
latino
Member
 
Registered: Aug 2003
Location: Puerto Rico
Distribution: Centos 6.6
Posts: 142

Original Poster
Rep: Reputation: 15
Hi:

It is not providing aby error message. Dirs are not write protected. It just ignores de -f or --force. It defaults to interactive and waits the answer if file will be overwrited...

Will try a reboot and see what happen.

Later
 
Old 02-25-2005, 09:25 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
It's not getting -i as well, is it? Perhaps some bash startup script is aliasing cp to 'cp -i'. Some distros do that. Try 'alias' by itself and see if cp is listed.
 
Old 02-25-2005, 09:44 PM   #5
latino
Member
 
Registered: Aug 2003
Location: Puerto Rico
Distribution: Centos 6.6
Posts: 142

Original Poster
Rep: Reputation: 15
Yeah! Matir you found out the problem.

cp is defaulting to interactive since _alias shows:
cp = cp -i

My question now is, How to fix this? I am using RHEL 4

Thanks!!
 
Old 02-25-2005, 10:02 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Look in your ~/.bash_profile or ~/.bashrc first. Perhaps /etc/profile as well. There's probably an alias line somewhere in there. I'm glad I was able to narrow down the problem for you.
 
  


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
weird, weird problems with logitech precision USB gamepad ikataii Linux - Hardware 4 10-14-2005 04:31 AM
su not accepting root p/w SinnaminGrrl Mandriva 7 02-10-2005 07:11 PM
something more serious than drivers? not accepting commands... jazzben Linux - Newbie 5 10-12-2004 04:10 PM
Fedora not accepting mp3's?? Jmcatch742 Fedora 0 08-08-2004 09:15 PM
Won't run X unless I force it. Weird. miller Linux - General 9 12-29-2001 01:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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