how to list all dbs in mongo db on ubuntu code example
Example 1: mongodb show database command linux
show databases
show dbs
Example 2: mongodb show database command linux
show collections
show tables
db.getCollectionNames()
show databases
show dbs
show collections
show tables
db.getCollectionNames()