Click to See Complete Forum and Search --> : How to setup Alias


linux1272
01-11-2001, 07:27 PM
I have a stupid question. I login a user right. I setup a simple command as a alias

then i su - so i could become root.

I set a alias to stop httpd server.

#alias='/usr/local/apache/bin/apachectl stop'
It takes it. then i do a crt + d to log out

Right when I log in once again as superuser
I dont see the alias i setup .

can you please tell me what i'm doing wrong

Thank you
switch ;-)

------------------
Good evening Mr. Gates,
I'll be your server today

demian
01-11-2001, 07:31 PM
You have to save the aliases you set up to a file that is evaluated at login (.bashrc for the bash shell).

linux1272
01-11-2001, 08:09 PM
Thank you for the help, so anytime that i want to put a custom alias in root i should always do it in the .bashrc file right?


Thank you once again


switch