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? Code: nano ~/.bash_profile alias ls='ls -F --color '
You have to put it in every user's .bash_profile file. And you must log out and log in again before it works.