Mongo shell is a CLI that we use to work with the Mongo database directly from the terminal.
Mongo shell uses JavaScript, therefore the syntax is the same as working with JS and calling methods.
# Start the Mongo server - Linux
sudo systemctl start mongod
# Check the Mongo server status - Linux
sudo systemctl status mongod
# To open the Mongo Shell - Linux
mongo
# Start the Mongo server with Homebrew - MacOS
brew services start mongodb-community
# OR
# Start the Mongo server - MacOS
mongod
# OR
# Start the Mongo Shdbell - MacOS
mongo