-   Linux - Newbie (
-   -   Creating aliases in the .bashrc file (

LDJ 01-15-2007 01:16 PM

Creating aliases in the .bashrc file
When logged in as root I sucessfully edited the /bashrc file in the /root DIR with a number of basic, yet handy, command alias shortcuts. these work fine, but when im logged in as a normal user they do not work.
There is no /bashrc file in my home DIR when logged in as the normal user, and i've tried copying it over from the root DIR (when root) but that hasn't made any differences, even though i've changed the permissions so the user is indeed the owner.

Where do normal users store their command aliases for the bash shell if not in the .bashrc file? or am i doing something wrong?


MOS JEFF-INITELY 01-15-2007 02:03 PM




LDJ 01-15-2007 03:19 PM

thanks .

/etc/profile worked a treat!

ethics 01-15-2007 03:28 PM

That will set them for all users.

If you want some to have different aliases (or prompts etc.) then i would use $HOME/.bashrc

All times are GMT -5. The time now is 05:36 AM.