Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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


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.