Informational commands

There is a series of useful commands, referred to as command helpers (https://docs.mongodb.com/manual/reference/mongo-shell/#command-helpers), that is available from inside the shell. Once you are in the shell, simply type help, and you will see the help quick reference, shown here:

The mongo shell enables most of the common keystroke editing shortcuts (https://docs.mongodb.com/manual/reference/mongo-shell/#keyboard-shortcuts) available in most text editors (for example, Windows Notepad, or Linux gedit). Accordingly, you can use home and end to move to the beginning and end of the current line, and so on. In addition, ...

Get MongoDB 4 Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.