Docs Home
MongoDB Manual
5.0
Introduction
CRUD Operations
Aggregation Operations
Indexes
Atlas Search
Atlas Vector Search
Time Series
Change Streams
Transactions
Data Modeling
Replication
Sharding
Storage
Administration
Security
Self-Managed Deployments
FAQ
Reference
Collation
Connection Strings
Database Commands
DDL Operations
Default Port
Read & Write Concerns
Error Codes
Explain Results
Glossary
Log Messages
Limits & Thresholds
MongoDB Database Tools
Wire Protocol
mongosh Methods
Operators
Server Sessions
Stable API
System Collections
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
Release Notes
Technical Support
Docs Menu
Ask MongoDB AI
Rate This Page
Docs Home
/
MongoDB Manual
/
Reference
/
Legacy mongo Shell
/
Native Methods in the Legacy Shell
copyDbpath()
This version of the documentation is archived and no longer supported. To upgrade your 5.0 deployment, see the
MongoDB 6.0 upgrade procedures
.
copyDbpath()
For internal use.
Back
cd()
Next
getHostName()