Discussion in 'Programming/Scripts' started by chrno, May 15, 2006.

  1. chrno

    chrno New Member

    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 '
  2. falko

    falko Super Moderator Howtoforge Staff

    You have to put it in every user's .bash_profile file. And you must log out and log in again before it works.
  3. EvanCarroll

    EvanCarroll New Member HowtoForge Supporter

    don't think so.

    /etc/profile should work.

Share This Page