I tried to find this info everywhere and couldn't find it. I already change mongodb.conf so I forget where the original directory is.
When you are searching a file in your filesystem while you are running Ubuntu a very easy way to find it is to do the following:
Update the database with your files (may be a bit slow, depending on when it run the last time automatically from your system):
Search for the corresponding file (super quick):
The config file name has recently change, now use
locate mongod.conf (no more "b") (or just
locate '*mongo*.conf', if you aren't sure).
Note: In the latest mongodb versions, the configuration file has been renamed to
You can find MongoDB configuration: locate 'mongo.conf' Also this is the MongoDB resource: https://docs.mongodb.com/manual/reference/configuration-options/