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