Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

migrated from Nov 8 '11 at 15:35

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

I would just do

sudo updatedb


locate -i mongodb

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

share|improve this answer

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

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

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.