LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux equivalents to windows directories (https://www.linuxquestions.org/questions/linux-newbie-8/linux-equivalents-to-windows-directories-856356/)

zensunni 01-14-2011 01:13 PM

Linux equivalents to windows directories
 
I'm looking for a decent comparison chart for linux equivalents to windows' system directory.

I know that it's not a one-to-one scenario. Many linux folders house much more than it's windows equivalent and vice versa.

But, there are many folders that should have relatively the same purpose.

Does such a beast exist? I've turned up nothing on google.

paulsm4 01-14-2011 01:30 PM

Hi -

There are standard conventions (rules? guidelines?) for Linux system directories.

For example:

http://en.wikipedia.org/wiki/Filesys...archy_Standard

http://www.pathname.com/fhs/pub/fhs-2.3.html

'Hope that helps .. PSM

pljvaldez 01-14-2011 01:35 PM

I don't think there's a good one to one at all (by design). Here's a link that explains the linux folders and you can try to create your own map.

jefro 01-14-2011 03:26 PM

The only difference I know of is the way the user is presented with the directory structure.

Or do you mean something like /system32 relates to /bin sort of question?

frieza 01-14-2011 04:42 PM

Linux system directories tend to be similar to UNIX

directories that can be said to be similar to windows

/etc (default/global,configurations, kind of like the HKEY_LOCAL_MACHINE registry hive)
/lib, /usr/lib, /usr/local/lib - libraries (equivalent of the dlls in system and system32
/bin, /usr/bin, /usr/local/bin - installed binaries (equivalent of program files)
/sbin, /usr/sbin, /usr/local/sbin - administrative binaries (sort of like the applications in system32)
/home, similar to 'documents and settings'

not a complete list but what i could think of off hand

frankbell 01-14-2011 09:14 PM

Quote:

Originally Posted by zensunni (Post 4224479)
Many linux folders house much more than it's windows equivalent and vice versa.

But, there are many folders that should have relatively the same purpose.

Nothing even close.

In Windows, the system information is all in C:\Documents and Settings and in C:\Windows.

In Linux, the /home/[user name] directories are roughly equivalent to C:\Documents and Settings\[user name].

Executable files are in /usr/bin and /usr/local/bin and sometimes /opt. Libraries (sort of like DLLs) and files shared among applications are in /usr/lib and /usr/share.

Logs and temporary files are in /var.

Configuration scripts and boot scripts are in /etc.

Devices are in /dev and mountpoints for those devices are in /mnt or /media.

And so on.

For day to day use, users are most likely to have to deal with /home, /etc (to change configuration settings), and /usr. They may also have to manipulate /media or /mnt to create mountpoints for new devices or edit fstab.

The Slackbook has a good summary of the Linux file structure:

http://www.slackbook.org/html/book.h...URATION-LAYOUT

MTK358 01-15-2011 08:21 AM

Quote:

Originally Posted by zensunni (Post 4224479)
I'm looking for a decent comparison chart for linux equivalents to windows' system directory.

I know that it's not a one-to-one scenario. Many linux folders house much more than it's windows equivalent and vice versa.

But, there are many folders that should have relatively the same purpose.

Does such a beast exist? I've turned up nothing on google.

It's so different, that you can't really do a comparison like that.

For example, programs in Linux are not stored in one directory. Different parts of it are stored in completely different hierarchies!

teebones 01-15-2011 09:18 AM

Quote:

Originally Posted by frieza (Post 4224663)
Linux system directories tend to be similar to UNIX

directories that can be said to be similar to windows

/etc (default/global,configurations, kind of like the HKEY_LOCAL_MACHINE registry hive)
/lib, /usr/lib, /usr/local/lib - libraries (equivalent of the dlls in system and system32
/bin, /usr/bin, /usr/local/bin - installed binaries (equivalent of program files)
/sbin, /usr/sbin, /usr/local/sbin - administrative binaries (sort of like the applications in system32)
/home, similar to 'documents and settings'

not a complete list but what i could think of off hand

I was thinking about the answer, but this is nice, couldn't have done better!
closest answer to the question of the OP.
(i'll give you a vote)

frieza 01-15-2011 10:49 AM

why thank you

oh, and unlike windows, Linux doesn't put games in any of the sbin directories :p (e.g. solitaire, pinball,minesweeper and hearts), nothing against bundling games with an OS but games belong in the 'program files' directory no matter how you slice it, that and its nearly impossible to erase those default games especially in windows XP since they are restored automatically from a backup copy elsewhere in the windows directory that is protected from all but a deliberate attempt to remove them or change them

one more thought I had after posting was that the .directories/files (hidden files) in user's home directories could be compared in some ways to a mish of the HKEY_CURRENT_USER registry hive and the hidden 'application data' folder in 'documents and settings\{user}'

also, /usr/share and /usr/local/share have some other components that would be found in \windows \windows\system or \windows\system32 (icons, some data files, scree saver data etc..)

paulsm4 01-15-2011 07:32 PM

Hi -
Quote:

I was thinking about the answer, but this is nice, couldn't have done better!
No - the "closest answers" were the (multiple citations) to the "Filesystem Hierarchy Standard" (FHS).

Windows is a hodgepodge. Think ".ini files" vs "registry". Or "registry vs. side by side" (application manifests). Or "\Documents and Settings" vs "\Users". How about "\windows" vs "windows\system32" vs "\winnt" vs "windows\system32" again?

dvdljns 01-16-2011 03:36 AM

Quote:

Originally Posted by paulsm4 (Post 4225617)
Hi -

No - the "closest answers" were the (multiple citations) to the "Filesystem Hierarchy Standard" (FHS).

Windows is a hodgepodge. Think ".ini files" vs "registry". Or "registry vs. side by side" (application manifests). Or "\Documents and Settings" vs "\Users". How about "\windows" vs "windows\system32" vs "\winnt" vs "windows\system32" again?

There is no simalarity between windows and linux. I have used windows since 101 and a dos shell before that. Windows is setup in a logical o9rder but linux doe not seem that simalar even comaring linux distros.That is why the advise to pick one linux flavor and use that is probly some of the best advise tha can be given. but if you ever do manage to create some type of map. please post it. heck if you even do it with linux flavors, that would help diehard windows users like me.

ashish_neekhra 01-16-2011 04:03 AM

To know more about Linux Filesystem architecture you can go through with these two links,

1. Important RHEL Directories & their usage
2. Important configuration files in RHEL

Hope it'll help you,

dvdljns 01-16-2011 04:31 AM

thanks I will download it and check it out. Everything helps.


All times are GMT -5. The time now is 02:38 PM.