Listing all collections in mongo shell

In mongo shell, how to list all collections?

We can use the following method in the mongo shell to list all the collections in the currently selected database:

db.getCollectionNames()

Also, can use the following command to do the same:

show collections