Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 is simple.

Why ubuntu don't support sh command?

It's more convenient than cd $wd; ./ and add PATH in some situation.

~/bin/ -i 4564646 dfdsfsdf

some code

When I'm running sh ~/bin/

It print

sh: 0: Can't open ~/bin/

ls -l ~/bin/

share|improve this question
What is cd $wd? – Kevin Nov 18 '12 at 4:13
change working directory to the shell directory – qingfeng Nov 18 '12 at 4:17
You need to be more specific about your problem. The example you gave (sh should work, unless the script you are trying to execute requires another shell or interpreter different from sh. – Salem Nov 18 '12 at 4:21
@Salem I have edited my question. – qingfeng Nov 18 '12 at 4:29
Please include the output of "ls -l /bin/" – andol Nov 18 '12 at 4:32
up vote 1 down vote accepted

If the script is in ~/bin then ~/bin will already be in the path. As long as it's a bash script you can execute it from anywhere at all. No need to shell, no need to cd, and no need to add anything in your path.

share|improve this answer

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.