mongosh
mongo
Docs Home → Develop Applications → MongoDB Manual
pwd()
Returns the current working directory of the active shell session, and does not impact the server.