What is the Ubuntu equivalent to the Windows C:\\Program Files folder? This is where Windows stores the system wide data for applications.
|
|
|||||||
|
|
There probably isn't a direct equivalent however, since, for example, library files are shared across the system (in So installing a program via a deb file, repository or build will likely place files in all of these locations. [EDIT] And as others note, there is also |
|||||||
|
|
There is no single directory that is the exact equivalent of Program Files folder. The way Linux arranges things is a lot different than Windows. In windows, every program that we install gets its own directory inside the Program Files directory. In that directory, further sub-directories are created for different kind of files. There is no fixed structure for sub-directories. Programs decide for themselves what they want to call each directory and where they want to put what. But in Linux when a program is installed, different kind of files are copied to different locations. Executables are copied to /usr/bin, library files to /usr/lib, documentation to one or more of /usr/man, /usr/info and /usr/doc. If there are configuration files, they are usually in the user's home directory or in /etc. |
|||
|
|
|
The From the manual page of the filesystem hierarchy:
Ubuntu has a different structure than windows. Ubuntu places almost all applications in one directory, say |
|||
|
|
There is no easy answer.
|
|
In this answer when I say Unix I mean Unix as well as Unix-like operating systems. Ubuntu doesn't really have a programs folder containing all of the data for each program. In Unix and Unix-like operating systems, EVERYTHING is a file, even the terminal commands. They're files as well. The way Unix handles programs can be pretty chaotic, and organized at the same time. Icons for programs are stored in /usr/share/icons/*, program executables are usually stored in /usr/bin, /bin, and other places with bin directories (bin is obv short for binary). Libraries that programs depend on are in /lib. So you end up with not a directory containing all of the data for one program, but the data for the program spread out. While at first this seems very disorganized, it allows for sharing of standard things like libraries and icons. Thanks to permissions for each file, the idea of everything being a file is very brilliant to be honest. It makes Unix MUCH more secure than other operating systems. |
|||
|
|
|
The kind how Linux and Windowsprograms are installed is quiete different. The common pattern on Windows is, that a program or a bunch of programs from one vendor go into a subdir in C:\programs\vendor or something similar. On Linux, your files are mostly split: There is one dir for libs, one for icons, one for help, one for logfiles and so on. You need all of them or many of them, but they aren't coupled together, but together with similar files from different programs. So the answer is: There is no equivalent. |
||||
|
|
