In this next section, we will focus primarily on the various ways to perform standard create, read, update, delete (CRUD) operations via the mongo shell.
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 ...