Is there a way to see a list of indices on a collection in mongodb in shell? i read through http://www.mongodb.org/display/DOCS/Indexes but i dont see anything
If you want to list all indexes:
db.getCollectionNames().forEach(function(collection) { indexes = db.getCollection(collection).getIndexes(); print("Indexes for " + collection + ":"); printjson(indexes); });