Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Which command is used to view containing folder of an application? For example, I installed Emacs, Chrome,... on my computer, now I want to view folder that holds them. How can I do that via terminal? Thank you so much!

share|improve this question

2 Answers 2

up vote 2 down vote accepted

I think this is the right answer. You should try to use command: dpkg -S <package name> from terminal.

share|improve this answer
    
Thanks. I tried and think it's right. –  Thắng Oct 21 '13 at 2:31
    
Can you vote for my answer? Thank you so much. –  ansidev Oct 21 '13 at 2:33
    
I wish I can vote for all of you who answer my question. But it requires reputation, and I am only a new comer here. Sorry. –  Thắng Oct 21 '13 at 9:31
    
@Thang If this answered your question, you may mark this answer as accepted, by clicking the green check mark next to it. That will indicate that your problem is solved. –  Radu Rădeanu Oct 21 '13 at 19:11

There are three ways to figure this out:

This one is Debian/Ubuntu specific: dpkg -L <package name> and lists all files installed by that package.

But you can also use whereis <cmd> to list all files and folders containing that cmd-name, or to just locate the executable file: which <cmd>. Both these commands work on almost any Linux distro.

share|improve this answer
    
Thank you so much! –  Thắng Oct 21 '13 at 9:29

Your Answer

 
discard

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.