To remove the bad alias from the ~/.bashrc_aliases file, type the following in bash:
Then key down to the mongod alias and press the
A key on the keyboard. This puts you in insert mode on the editor. remove everything after the equals sign and copy/paste in this:
'mongod --bind_ip=$IP --dbpath=data --nojournal --rest "[email protected]"'
Note that the dbpath can be whatever path you would like.
Once you’ve copied in that change, press the
ESC key. Then type in
:wq and press enter. This should save the changes.
Finally, exit the current bash terminal, and start a new one using
Alt+T. You should now be able to use the
mongod alias as normal.
Note: any changes made to the ~/.bashrc_aliases file requires a restart of the terminal.