
- MongoDB Tutorial
- MongoDB - Home
- MongoDB - Overview
- MongoDB - Advantages
- MongoDB - Environment
- MongoDB - Data Modeling
- MongoDB - Create Database
- MongoDB - Drop Database
- MongoDB - Create Collection
- MongoDB - Drop Collection
- MongoDB - Data Types
- MongoDB - Insert Document
- MongoDB - Query Document
- MongoDB - Update Document
- MongoDB - Delete Document
- MongoDB - Projection
- MongoDB - Limiting Records
- MongoDB - Sorting Records
- MongoDB - Indexing
- MongoDB - Aggregation
- MongoDB - Replication
- MongoDB - Sharding
- MongoDB - Create Backup
- MongoDB - Deployment
- MongoDB - Java
- MongoDB - PHP
- Advanced MongoDB
- MongoDB - Relationships
- MongoDB - Database References
- MongoDB - Covered Queries
- MongoDB - Analyzing Queries
- MongoDB - Atomic Operations
- MongoDB - Advanced Indexing
- MongoDB - Indexing Limitations
- MongoDB - ObjectId
- MongoDB - Map Reduce
- MongoDB - Text Search
- MongoDB - Regular Expression
- Working with Rockmongo
- MongoDB - GridFS
- MongoDB - Capped Collections
- Auto-Increment Sequence
- MongoDB Useful Resources
- MongoDB - Questions and Answers
- MongoDB - Quick Guide
- MongoDB - Useful Resources
- MongoDB - Discussion
How to run MongoDB shell using mongos command?n
In order to launch the MongoDB shell, you need to use mongo command. Following is the syntax −
>mongo
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 −
- Related Articles
- How to compile & run a Java program using Command Prompt?\n
- How to run TestNG from command line?
- How to run a command inside Docker Container?
- How to run Python functions from command line?
- How to run Invoke-Command in PowerShell Workflow?
- How can we return to windows command shell from MySQL command line tool?
- How to run Python functions in Eclipse command line?
- How to run PowerShell commands from the command prompt?
- How to Run a Command Multiple Times in Linux?
- How to run a PowerShell script from the command prompt?
- How to terminate a MongoDB shell script earlier?
- How to print document value in MongoDB shell?
- How to unset a variable in MongoDB shell?
- How to define aliases in the MongoDB Shell?
- How to get items with a specific value from documents using MongoDB shell?

Advertisements