I need to run a script in /etc/profile to setup aliases for all users login thru SSH. But this doesn't work:
setup_aliases.sh
#!/bin/bash
alias d='sh /opt/d/d.sh'
alias dc='d c'
alias de='d e'
------------
append this to: /etc/profile
. /opt/d/setup_aliases.sh
After login, I type 'd' but it says "command not found". Please help. Thanks. (I'm using Debian5)