How to run MongoDB shell using mongos command?

MongoDBDatabaseBig Data Analytics

In order to launch the MongoDB shell, you need to use mongo command. Following is the syntax −


First reach the MongoDB bin directory from command prompt as in the below screenshot −

Here is the command to launch the mongo shell as in the below screenshot −

This will produce the following output −

Updated on 31-Mar-2020 08:26:14