On Ubuntu 13.04 running in EC2, all commands through sudo
work fine except ls
. Here are some example commands to illustrate the issue:
ubuntu at host in ~
$ sudo ls
sudo: command: command not found
ubuntu at host in ~
1 $ sudo which ls
/bin/ls
ubuntu at host in ~
$ sudo /bin/ls
bin dotfiles init npm tmp
ubuntu at host in ~
$ sudo pwd
/home/ubuntu
ubuntu at host in ~
$ sudo which pwd
/bin/pwd
ubuntu at host in ~
$ echo wtf
wtf
My dotfiles are here https://github.com/mike-spainhower/dotfiles