If none of the more specific forums is the right place to ask


Postby Rambo » 2004-04-02 10:25

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?

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

Postby lacek » 2004-04-02 12:43

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).
Moderator Team Member
Posts: 769
Joined: 2004-03-11 18:49
Location: Budapest, Hungary

Postby Rambo » 2004-04-02 13:59

I'm learning more about Linux day by day.

Thanks man.
Posts: 9
Joined: 2004-03-19 20:07

Return to General Questions

Who is online

Users browsing this forum: No registered users and 6 guests