Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .