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

How to clear the console in MongoDB?

PHPz
Release: 2023-09-01 08:21:09
forward
1532 people have browsed it

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
Copy after login

After pressing the above key, you can clear the console in MongoDB.

The second syntax is as follows -

cls
Copy after login

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;
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template