Under Windows, most applications and application data are stored in a special directory known as C:\Program Files (and occasionally C:\Program Files (x86)). What is the Ubuntu/Linux equivalent to this path? Is there even one?
|
|
|||||||||||||
|
There is no easy answer.
|
|
|
Pretty cool answer. One question, what is Symbolic Link? Is it Windows shortcut equivalent?
– Quazi Irfan
Jun 2 '15 at 23:35
|
||
|
|
@iamcreasy thanks! Yes, they are a sort of shortcut, but with the main intention of avoiding file copies. The windows shortcuts are more comparable to. desktop files, which can be used to create, for example, startmenu items.
– Gerhard Burger
Jun 3 '15 at 5:37
|
||
|
|
Why would someone use .desktop file over symbolic links and vice versa?
– Quazi Irfan
Jun 3 '15 at 10:48
|
||
|
@iamcreasy In .desktop files you can add extra information, such as a description and an icon (see an example here: standards.freedesktop.org/desktop-entry-spec/latest/apa.html), it's a 'regular' file. A symbolic link is a 'special' file that only links to another file. I find this hard to explain properly but maybe you can find a better answer here: superuser.com/questions/253935/…
– Gerhard Burger
Jun 3 '15 at 11:54
|
|
The way that Linux and Windows programs are installed is quite different. The common pattern in Windows is for a program; or a bunch of programs, from one vendor go into its own sub directory in C:\programs\vendor or something similar. In Linux, your files are split up between specific sub directories depending on their function. There are directories for libraries, icons, man pages, Log files, configuration and so on. You may use some of them, but the system will manage all of them. They are not coupled together, but exist together with similar files from other programs. So there is no real equivalent to that Windows directory structure in a regular Linux implementation. |
||||
|
|
|
Late Answer - I've created a roadmap for beginners to follow. If they are looking for a file but don't know where to look, they can use the map to roughly navigate around. You can download a hi-res PNG here. You can find the related post here. I will keep updating both the file and the post when time permits, incorporating helpful comments. |
|||||
|
|
Linux 'Program Files' are in the whole hierarchy. It could be on I think you are going to find some file related to your application. Then, I have an idea on how to looks files which are installed on program installation.
It is because linux move the installed file to directories separately based on their type.
And many other directories. (CMIIW, accepting correction) |
||||
|
|
|
If you install own programmes, I recommend 1 folder:
|
|||
|
|
|
Look in |
||||
|
|
|
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. |
|||||||||
|
|
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. |
|||
|
|
|
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 |
|||||||||||||
|
|
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 |
|||
|
|
protected by Braiam May 24 '15 at 14:56
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?

