LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   Fedora 12 alias problem (https://www.linuxquestions.org/questions/fedora-35/fedora-12-alias-problem-776489/)

watcher69b 12-17-2009 12:59 PM

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!

tom4everitt 12-17-2009 01:16 PM

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.

watcher69b 12-17-2009 01:27 PM

I have been doing it from both the console and an ssh connection. I will check out the bashrc

tom4everitt 12-17-2009 01:30 PM

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.

watcher69b 12-17-2009 01:33 PM

Got it rock on!


All times are GMT -5. The time now is 08:15 AM.