Yes,
Step 1: Save this script in file ShowAllDBNames.js where mongodb exe is,
db.adminCommand('listDatabases').databases.
filter(function(it)
{return it.name != "local";
}).
forEach(function(it){print(it.name);
})
Step 2:
then write this command and execute:
mongo --quiet ShowAllDBNames.js