LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 12-17-2009, 12:59 PM   #1
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Rep: Reputation: 41
Fedora 12 alias problem


hey guys
I am trying to remove alias cp='cp -i'
from my alias.
I have tried
unalias cp
and
alias cp='cp'

works great, but after each reboot it magically comes back as
cp='cp -i'
WTF can anyone give me a hand with this?

Thanks!
 
Old 12-17-2009, 01:16 PM   #2
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
Where are you doing this changes? Directly in your terminal or in some config file?

Changes you do in your terminal will only be for the terminal you do them in, if you want them to last you should edit your ~/.bashrc file. Just put the command you want run last in the file (on a new line), and it will be run every time you open a terminal.
 
Old 12-17-2009, 01:27 PM   #3
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Original Poster
Rep: Reputation: 41
I have been doing it from both the console and an ssh connection. I will check out the bashrc
 
Old 12-17-2009, 01:30 PM   #4
tom4everitt
Member
 
Registered: Jan 2009
Location: Stockholm
Distribution: Fedora, Ubuntu, Mac OS X
Posts: 78

Rep: Reputation: 23
Yes, changes made from console (or ssh) will not last, so you need to edit your bashrc.

You might even be able to locate the line where the cp alias is set originally, in that case you can just comment it out with a '#' in front of the line.
 
Old 12-17-2009, 01:33 PM   #5
watcher69b
Member
 
Registered: Nov 2007
Location: /home/watcher69b
Distribution: RH, Fedora & CentOS
Posts: 552

Original Poster
Rep: Reputation: 41
Got it rock on!
 
  


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
Alias on Apache to home dir on Fedora 8 throws Forbidden! vigilnt Linux - Server 2 03-19-2008 08:52 AM
IP Alias on Fedora Core 6 loewen Linux - Newbie 2 11-20-2006 02:44 PM
IP Alias on Fedora Core 6 not working right, Operation not permitted loewen Linux - Newbie 2 11-17-2006 09:47 AM
Fedora Core 2 alias settings mcpchandra Fedora 3 10-27-2004 04:38 PM
anti alias with flubox and Fedora core 2 simao Fedora 0 10-25-2004 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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

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