check mongodb version in terminal code example Example 1: command to check mongodb version mongod --version Example 2: check mongodb installation mongo -version