check the version of mongodb with command code example Example: show mongodb version mongod --version