To clear the console in MongoDB, you can use either of the following two syntaxes.
The first syntax is as follows, this is the usage of the keyboard shortcut -
Ctrl + L
After pressing the above key, you can clear the console in MongoDB.
The second syntax is as follows -
cls
In order to understand the above syntax, let us implement them one by one. Here is a snapshot of my console.
The first query is as follows to clear the console in MongoDB-
Ctrl+L;
The following is the output-
Looking at the sample output above, the console has been cleared. Let's check the console again.
The second query is as follows, which is used to clear the console, that is, enter "cls" -
The above is the detailed content of How to clear the console in MongoDB?. For more information, please follow other related articles on the PHP Chinese website!