check which version of MongoDB installed code example Example: command to check mongodb version mongod --version