Reputation: 531
I installed mongodb by following the instructions from its site. To open the shell I must go to the installation directory of mongodb, and then type
./bin/mongo
I don't know the default directory. where might it be?
Upvotes: 9
Views: 43073
Reputation: 71
Windows: c:\Program Files\MongoDB\Server\3.4.7\bin\mongod
Mac: /usr/local/Cellar/mongodb/3.4.7/bin/mongod
Replacing the 3.4.7 with your version of Mongodb
Upvotes: 7
Reputation: 151
Late to the party but it could help others : I installed mongodb 3.4.10 for Ubuntu 16.4
I found the mongo file to launch the shell at
/usr/bin/mongo
I found it using the following commands
sudo updatedb
locate -b '\mongo'
Upvotes: 13
Reputation: 319
Use the which mongo
command to look for the location of the mongo executable.
Upvotes: 9