C:\Program Files folder equivalent on Ubuntu

Which folder in Ubuntu is equivalent to C:\Program Files like on windows? Where are all programs installed?

when i type

apt-get install leafpad

or

sudo apt-get install sublime-text-installer

Where do they go??? Which folder?


Solution 1:

Ubuntu's file system is organised according to the filesystem hierarchy standard and therefore there, generally speaking, is no equivalent to c:\program files.

The location of package files installed through apt can be viewed with dpkg -L, e.g.

dpkg -L leafpad

Solution 2:

On the Linux file system, there really is no one place that everything is installed to. Libraries (like a dll) are shared system wide in /lib, binary applications are in /bin and /usr/bin, etc. The binaries to those would be in /usr/bin/