check if mongodb is installed ubuntu code example
Example 1: how to check mongodb status in ubuntu
sudo systemctl status mongodb
Example 2: how to check if mongodb is installed
Open the command prompt and type "cd c:\program files\mongodb\server\your version\bin". After you enter the bin folder type "mongo start". If you get either a successful connection or failed one it means it's installed at least.
Example 3: check if mongodb is installed
mongod --version