There is no direct equivalent. The directory structure is very different. Under Windows, you have a single directory for each installed package/software that contains all the files related to (e.g. C:\Program Files\MyProgram
). Under Linux each software is "dispersed" in many directories according to file type and some other rule.
As an example, we can examine where different files related to xscreensaver
program are installed:
/etc/pam.d/xscreensaver
/etc/xscreensaver
/etc/xscreensaver/README
/usr/bin/xscreensaver
/usr/bin/xscreensaver-command
/usr/bin/xscreensaver-demo
/usr/bin/xscreensaver-gl-helper
/usr/share/X11/app-defaults/XScreenSaver
/usr/share/applications/xscreensaver-properties.desktop
/usr/share/doc/packages/xscreensaver
/usr/share/doc/packages/xscreensaver/README
/usr/share/locale/ca/LC_MESSAGES/xscreensaver.mo
/usr/share/locale/da/LC_MESSAGES/xscreensaver.mo
/usr/share/locale/de/LC_MESSAGES/xscreensaver.mo
[ ... ]
/usr/share/locale/zh_TW/LC_MESSAGES/xscreensaver.mo
/usr/share/man/man1/xscreensaver-command.1.gz
/usr/share/man/man1/xscreensaver-demo.1.gz
/usr/share/man/man1/xscreensaver.1.gz
/usr/share/man/man6/xscreensaver-gl-helper.6x.gz
/usr/share/pixmaps/xscreensaver.xpm
/usr/share/xscreensaver
/usr/share/xscreensaver/glade
/usr/share/xscreensaver/glade/screensaver-cmndln.png
/usr/share/xscreensaver/glade/screensaver-colorselector.png
[ ... ]
Do not worry, usually when a installer asks where to install to, the correct answer is one of the following: /
, /opt
, /usr
, /usr/local
As you can see, quite all(1) files of xscreensaver
are installed under /usr
according to some simple rule: executables in /usr/bin
, manual pages in /usr/share/man
, documentation in /usr/share/doc/packages/PROGRAMNAME
and so on.
When an installer asks for a installation prefix
, usually it wants to now the base path under which install the program. In my xscreensaver
example, it is /usr
.
As simple rule: /
should contain only program that are needed to boot the system (as C:\windows\system32
), /usr/local
should contain the programs that are needed only on that unique computer, /opt
(2) all the optional programs that have non standard directory structure and /usr
all the standard software.
In any case, it exists a standard that defines all these rules in detail: Filesystem Hierarchy Standard
(1) system-wide configuration files must reside in /etc
(2) quite obsolete under Linux