list all the databases in mongodb shell 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()