permanant aliases
Hi,
I am trying to get some aliases to stick. I am running SuSE 9.1 pro. My default shell is bash. I don't have a .bashrc in my home directory. I also heard that there should be a profile.local in the /etc directory but I don't have one of those either. Also what type of syntax would I write the entries in? is just alias aliasname=command or do I need to do some scripting. thanks, -me |
Does anything in your home directory start with .bash say .bash_profile?
The line you want to add would look like: alias ll='ls -l' |
.bash_history
(Embarrased) I found a .bashrc (was looking at a different system). so I just drop those lines at the bottom of the .bashrc file and log out? thanks again -Me |
Yep logout and back in and they'll work.
|
Thanks it worked,,,
So how would I make this availbe to all users? |
It depends on your distro.
On debian e.g. this would be /etc/bash.bashrc Check in your /etc dir for a file similar to that one. |
All times are GMT -5. The time now is 05:47 PM. |