I have placed the mongo db shell installation (extract folder) file inside the home directory.
below is my .bash_profile (which I created) set up looks like:
export PS1=’$ ’
export PATH="~/mongodb-macos-x86_64-enterprise-4.2.0/bin:$PATH"
I ran the below commands from Terminal
$ open -e .bash_profile
$ source ~/.bash_profile
$ echo $PATH
~/mongodb-macos-x86_64-enterprise-4.2.0/bin:~/mongodb-macos-x86_64-enterprise-4.2.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
$ mongo --nodb
-bash: mongo: command not found
Please advise on why I am getting command not found instead of mongo version. I restarted my system as well. but didn’t work.