Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

alias

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
Rambo
Posts: 9
Joined: 2004-03-19 20:07

alias

#1 Post by Rambo »

I'm trying to set a commend like this
alias edit=nano

When I reboot the alias is gone
How do I make the computer remember this setting?

Thanks

lacek
Posts: 764
Joined: 2004-03-11 18:49
Location: Budapest, Hungary
Contact:

#2 Post by lacek »

There are two scripts responsible carrying out login commands. They are called .bash_profile and .bashrc (note the leading dots), and they are in your home directory. .bash_profile is executed for login shells, and .bashrc is for interactive shells. Generally, users don't need to distinguish between the two, as the .bash_profile executes .bashrc by default.

So, if you edit ~/.bashrc, the commands in it will be executed when the next shell is invoked (thus, of course, at bootup).

Rambo
Posts: 9
Joined: 2004-03-19 20:07

#3 Post by Rambo »

I'm learning more about Linux day by day.

Thanks man.

Post Reply