LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   permanant aliases (https://www.linuxquestions.org/questions/linux-newbie-8/permanant-aliases-274679/)

jsheffie 01-06-2005 02:28 PM

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

leonscape 01-06-2005 02:39 PM

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'

jsheffie 01-06-2005 02:44 PM

.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

leonscape 01-06-2005 03:19 PM

Yep logout and back in and they'll work.

jsheffie 01-06-2005 03:30 PM

Thanks it worked,,,

So how would I make this availbe to all users?

Charalambos 01-06-2005 03:39 PM

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.