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.

I'm new to Ubuntu and will like to know where i can find the location of program files of programs installed from the Ubuntu Software Center or the Command Line Interface

share|improve this question

3 Answers 3

up vote 5 down vote accepted

on the command line, you can use dpkg --listfiles packagename. For instance, dpkg --listfiles firefox. If you want to see what files a package contains without installing it, then you can install apt-file and use that.

But you really shouldn't mess with it. There is usually no reason to manually interfere with the contents of a package. All configuration files for normal applications are placed in the users home directory. You don't have savegames in C:\Programfiles\Appname\savegames, for instance. They would be placed in /home/username/.local/share/appname/savegames. That way, if you move your home directory to another machine, it keeps all configurations and user data.

share|improve this answer

Also, if you just need to know where the executable is you can run whereis executable or which executable For instance:

whereis firefox
firefox: /usr/bin/firefox /etc/firefox /usr/lib/firefox /usr/share/man/man1/firefox.1.gz
which firefox
/usr/bin/firefox
share|improve this answer

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.