Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /
Native Methods

getHostName()

getHostName()
Returns:The hostname of the system running the mongo shell process.

Back

copyDbpath()