If i type \"composer\" i get the above error message.
I did on my macbook:
curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /us
This works on Ubuntu;
alias composer='/usr/local/bin/composer/composer.phar'