How do I view indexes that already exist in mongodb?

see
View all indexes in the database db.system.indexes.find ()
db.system.indexes.find ()

on the Internet.

Why is it so after I type it

clipboard.png

Mar.13,2021

this command should be entered under the shell of mongodb, not under the shell of the operating system. First execute the commands of mongo, entering various mongodb, like this

.

clipboard.png

There is no result after entering

db.system.indexes.find ()?

Menu