Let's follow a basic debugging technique - simplify the problem.
Create a file named test.sh in your home directory. Put the following in it:
echo hello world
chmod it to be executable - I use chmod u+x test.sh, but feel free to use your favorite permissions.
From your home directory, type
You should see the shell script execute and print "hello world" to your console.
Use the [color=#CC0000]3DOM50[/color] promo code for 3 extra lifetime domains and $50 off
More Dreamhost coupons here!