Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question
add comment

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.

share|improve this answer
add comment

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.

share|improve this answer
add comment

Try man which.

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.