Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My question maybe is silly, but how can I make an alias so as to work in sh for all users?

I know that I can put an alias, let say this one:

alias ls='ls -l'

in /etc/bash.bashrc so as to work in bash but what is the equivalent for the sh?

I tried to put is in /etc/profile but doesn't work.

share|improve this question
    
Isn't sh only a symbolic link to your preferred shell? –  Bobby Apr 19 '13 at 11:27
    
which sh: /bin/sh –  Thanasis Petsas Apr 19 '13 at 12:16

1 Answer 1

After put your alias in /etc/profile exec follow command:

source /etc/profile

Try this solution and feedback here.

share|improve this answer
    
I have done it, but still doesn't work.. –  Thanasis Petsas Apr 19 '13 at 12:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.