You can also run the commands in the following ways:
cd <your Magento install dir>/bin and run them as ./magento <command name>php <your Magento install dir>/bin/magento <command name><your Magento install dir> is a subdirectory of your web server's docroot. Need help locating the docroot? Click here.