Home >Database >MongoDB >How to clear the console in MongoDB?

How to clear the console in MongoDB?

PHPz
PHPzforward
2023-09-01 08:21:091591browse

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.

如何清除 MongoDB 中的控制台?

The first query is as follows to clear the console in MongoDB-

Ctrl+L;

The following is the output-

如何清除 MongoDB 中的控制台?

Looking at the sample output above, the console has been cleared. Let's check the console again.

如何清除 MongoDB 中的控制台?

The second query is as follows, which is used to clear the console, that is, enter "cls" -

如何清除 MongoDB 中的控制台?

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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete