>show dbsusers 0.56787GBtest (empty)>db.test.help() // this will give you all the function which can be used with this db>use users>show tables //will show all the collection in the db
# List all databases and the collections in them
mongo --eval "db.getMongo().getDBNames().forEach(function(v, i){print(v + '\n\t' +db.getSiblingDB(v).getCollectionNames().join('\n\t'))})"
1. show collections; // Display all collections2. show tables // Display all collections3. db.getCollectionNames(); // Return array of collection. Example :[ "orders", "system.profile" ]