To access the mongo shell, simply execute
mongo from any terminal. The mongo shell requires the
mongod server to be currently running and available on the machine as the first thing it does is connect to the server:
$ mongo MongoDB shell version: 2.4.5 connecting to: test >
> show dbs
To switch databases...