View Shell Command History
On this page
The MongoDB Shell saves a history of all commands you've run across sessions. When a new command is issued, it is added to the beginning of the history file.
Steps
To view the MongoDB Shell command history, open the following file in a text editor:
Operating System | Path to History File |
---|---|
macOS and Linux |
|
Windows |
|