get mongodb version from shell code example Example: command to check mongodb version mongod --version