PDA

View Full Version : bash


chrno
15th May 2006, 21:15
I've got a Debian Sarge server which I'll ssh to login and then su to root. But the shell is normally no color (when i do a "ls"). I had to execute alias ls='ls -F --color ' each time I login. A search on google tell me that if I i put it into .bash_profile it should be executed whenever a user logins or do a su. But this aren't working. What am I doing wrong here?



nano ~/.bash_profile

alias ls='ls -F --color '

falko
16th May 2006, 17:47
You have to put it in every user's .bash_profile file. And you must log out and log in again before it works.

EvanCarroll
11th June 2006, 09:46
You have to put it in every user's .bash_profile file. And you must log out and log in again before it works.

/etc/profile should work.