db.serverStatus()
returned many running pages in mongo shell on my Windows 10 machine. What is the command to view the result page by page? less
, tail -n
or man
did not work inside the shell.
Asked
Active
Viewed 1,184 times
3

DAXaholic
- 33,312
- 6
- 76
- 74

Treefish Zhang
- 1,131
- 1
- 15
- 27
1 Answers
5
I think within the mongo shell itself that is not possible but you could call the shell from your command prompt (or PowerShell etc.) and use more
Something like this
mongo --quiet --eval "db.serverStatus()" | more

DAXaholic
- 33,312
- 6
- 76
- 74
-
1Thanks! How do you know these things? I googled for quite a while to no avail. – Treefish Zhang Aug 18 '16 at 17:51