how to check mongodb status in ubuntu

C++
sudo systemctl status mongodb
Source

Also in C++: