where mongodb exports files?
mongodb
Solution
Mongoexport generates the output file in the current directory
But in case you could not just find a file, I would do something like this:
mongoexport --db databaseName --collection collName --out /pathToYourFile/file.json
In such a case you will definitely know where it will be. Make sure that you have rights to write in that folder.
Problem
I am struggling to find the location of the file I am exporting with Mongo, using mongoexport ``` mongoexport --db databaseName --collection collName --out file.json ``` Can someone point me to the location I run it on ubuntu server with the default installation of mongo