Command 'mongo' not found, did you mean: command 'mono' from deb mono-runtime (

I successfully installed mongodb from the given instructions on this site server also started successfully with the response :

● mongod.service - MongoDB Database Server
     Loaded: loaded (/lib/systemd/system/mongod.service; enabled; vendor preset>
     Active: active (running) since Mon 2022-09-26 14:23:31 IST; 1min 59s ago
   Main PID: 2155 (mongod)
     Memory: 230.6M
        CPU: 1.252s
     CGroup: /system.slice/mongod.service
             └─2155 /usr/bin/mongod --config /etc/mongod.conf

Then I’m tryomg to open mongo shell with the command ‘mongo’ but it showing:

Command 'mongo' not found, did you mean:
  command 'mono' from deb mono-runtime (
Try: sudo apt install <deb name>

Why? I searched a lot for this but I didn’t get the solution please help.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Try mongosh to open shell in the latest versions of mongoDb. After starting mongodb server with mongo you have to run mongosh command to open mongodb shell it will open the shell in


db by default you can change it with using use <dbName> command.

Hi there,

It seems like you’ve only installed the MongoDB server and not the client CLI.

For Ubuntu, you can do that with:

sudo apt install mongodb-org-shell

Then the mongo command should be available as normal.

Let me know how it goes!



Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.