3

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.

DAXaholic
  • 33,312
  • 6
  • 76
  • 74
Treefish Zhang
  • 1,131
  • 1
  • 15
  • 27

1 Answers1

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