I installed the nosql database Mongodb before on my ubuntu before. now I forget the installation path of it, does anybody know the trick or method to find out the installation path of a program on ubuntu?

link|improve this question
feedback

migrated from stackoverflow.com Nov 8 '11 at 15:35

This question came from our site for professional and enthusiast programmers.

3 Answers

I would just do

sudo updatedb

then

locate -i mongodb

on ubuntu the installation path will probably be somewhere in the /usr/share path.

link|improve this answer
feedback

To find the path of the application, you can use the which command, followed by the executable that you would have run.

which <commandname>

In here something like

which mongodb 

I think.

link|improve this answer
feedback

Try man which.

link|improve this answer
Could you perhaps explain a way to use which in this case? – Simon Sheehan Nov 8 '11 at 21:03
feedback

Your Answer

 
or
required, but never shown