LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   alias question (https://www.linuxquestions.org/questions/linux-general-1/alias-question-28654/)

tied2 08-23-2002 09:31 PM

alias question
 
(OS) RH 7.3

ok I make a alias for my eth0 connection it went like this.

alias up='ifup eth0' and alias dn='ifdown eth0'

after I made them I checked them to see if they worked, they did.
then I closed that konsole and reopened another and retried the commands but it says "command not found" did I need to do something else to save the alias?

Thanks again LQ

gdrobson 08-23-2002 10:08 PM

Did you add the aliases to your ~/.bashrc ?

tied2 08-23-2002 10:20 PM

No, how do I do that ?

neo77777 08-23-2002 10:21 PM

Just the same way you did for aliasing them, put these alias commands in there

tied2 08-23-2002 10:50 PM

Ok thanks neo77777. You have answered alot of my posts and have always been helpful. Thanks again!


All times are GMT -5. The time now is 10:46 AM.