All Documentation
General Information
All Documentation
Realm Documentation
Developer Articles & Topics
Community Forums
Blog
Products
Solutions
Resources
Company
Pricing
Sign In
Try Free
General Information
All Documentation
Realm Documentation
Developer Articles & Topics
Community Forums
Blog
Search
Docs Menu
MongoDB Documentation
MongoDB Manual
5.2 (current)
Introduction
MongoDB Shell (mongosh)
MongoDB CRUD Operations
Aggregation Operations
Data Models
Transactions
Indexes
Security
Change Streams
Replication
Sharding
Administration
Storage
Frequently Asked Questions
Reference
Operators
Database Commands
mongosh
Methods
Legacy
mongo
Shell
Configure the
mongo
Shell
Access the
mongo
Shell Help
Write Scripts for the
mongo
Shell
Data Types in the Legacy
mongo
Shell
Native Methods in the Legacy Shell
cat()
cd()
copyDbpath()
getHostName()
getMemInfo()
hostname()
isInteractive()
listFiles()
load()
ls()
md5sumFile()
mkdir()
pwd()
quit()
removeFile()
resetDbpath()
sleep()
setVerboseShell()
version()
_isWindows()
_rand()
mongo
Shell Quick Reference
MongoDB Package Components
Configuration File Options
MongoDB Server Parameters
MongoDB Limits and Thresholds
Explain Results
System Collections
Connection String URI Format
Collation
MongoDB Wire Protocol
Log Messages
Exit Codes and Statuses
Glossary
Default MongoDB Port
Default MongoDB Read Concerns/Write Concerns
Server Sessions
Stable API
Release Notes
Technical Support
Docs Home
→
MongoDB Manual
resetDbpath()
resetDbpath()
For internal use.
←
removeFile()
sleep()
→
Give Feedback