±Recent Visitors

Recent Visitors to Com-Central!

±User Info-big


Welcome Anonymous

Nickname
Password

Membership:
Latest: HighestAce
New Today: 0
New Yesterday: 0
Overall: 6648

People Online:
Members: 0
Visitors: 193
Total: 193
Who Is Where:
 Visitors:
01: Downloads
02: Home
03: Community Forums
04: Photo Gallery
05: Community Forums
06: Home
07: Home
08: Community Forums
09: Community Forums
10: Home
11: Community Forums
12: Your Account
13: Home
14: Community Forums
15: Community Forums
16: Community Forums
17: Community Forums
18: Community Forums
19: Home
20: Home
21: Community Forums
22: Home
23: Community Forums
24: Downloads
25: Community Forums
26: Community Forums
27: Community Forums
28: Community Forums
29: Community Forums
30: Community Forums
31: Community Forums
32: Community Forums
33: Home
34: Community Forums
35: Community Forums
36: Community Forums
37: Downloads
38: Photo Gallery
39: Community Forums
40: Community Forums
41: Community Forums
42: Community Forums
43: Community Forums
44: Home
45: Community Forums
46: Community Forums
47: Community Forums
48: Community Forums
49: Home
50: Community Forums
51: Photo Gallery
52: Community Forums
53: Community Forums
54: Downloads
55: Community Forums
56: Home
57: Community Forums
58: Community Forums
59: Home
60: Photo Gallery
61: Home
62: Community Forums
63: News Archive
64: Community Forums
65: Community Forums
66: Community Forums
67: Home
68: Community Forums
69: Home
70: Community Forums
71: Community Forums
72: News Archive
73: Community Forums
74: Photo Gallery
75: Home
76: Community Forums
77: Community Forums
78: Community Forums
79: Community Forums
80: Community Forums
81: Community Forums
82: Community Forums
83: Community Forums
84: Photo Gallery
85: Downloads
86: Home
87: Home
88: Community Forums
89: Tell a Friend
90: Community Forums
91: Community Forums
92: Community Forums
93: Photo Gallery
94: Community Forums
95: Home
96: Community Forums
97: Community Forums
98: Community Forums
99: Community Forums
100: Community Forums
101: Home
102: Home
103: Community Forums
104: Home
105: Home
106: Community Forums
107: Community Forums
108: Community Forums
109: Community Forums
110: Community Forums
111: Community Forums
112: Home
113: Community Forums
114: Home
115: Photo Gallery
116: Community Forums
117: Community Forums
118: Community Forums
119: Community Forums
120: Community Forums
121: News Archive
122: Community Forums
123: Community Forums
124: Community Forums
125: News Archive
126: Community Forums
127: Community Forums
128: Community Forums
129: Community Forums
130: Downloads
131: Home
132: Community Forums
133: Home
134: Home
135: Community Forums
136: Home
137: Community Forums
138: Community Forums
139: Community Forums
140: Home
141: Community Forums
142: Home
143: Community Forums
144: Photo Gallery
145: Photo Gallery
146: Community Forums
147: Community Forums
148: Home
149: Community Forums
150: Community Forums
151: Community Forums
152: Community Forums
153: Community Forums
154: Photo Gallery
155: Home
156: Community Forums
157: Community Forums
158: Community Forums
159: Home
160: Community Forums
161: Your Account
162: Community Forums
163: Home
164: Home
165: Community Forums
166: Home
167: Member Screenshots
168: Community Forums
169: Community Forums
170: Community Forums
171: Community Forums
172: Home
173: Photo Gallery
174: Community Forums
175: Community Forums
176: Community Forums
177: Community Forums
178: Community Forums
179: Community Forums
180: Community Forums
181: Community Forums
182: Community Forums
183: Community Forums
184: Community Forums
185: Community Forums
186: Community Forums
187: Community Forums
188: News Archive
189: Member Screenshots
190: Community Forums
191: News Archive
192: Community Forums
193: Community Forums

Staff Online:

No staff members are online!
Dabbling in Linux? File structure explained. :: Archived
This is a forum for Software related items such as OS', Virus notices, cool or free programs, etc. Gaming software should go in the gaming folder pertaining to the current info.
Post new topic    Revive this topic    Printer Friendly Page     Forum Index ›  Software

Topic Archived View previous topic :: View next topic  
Author Message
Shadow_Bshwackr
Janitor

Offline Offline
Joined: Jan 21, 2005
Posts: 7019
Location: Central Illinois, USA
PostPosted: Tue Dec 06, 2005 12:16 pm
Post subject: Dabbling in Linux? File structure explained.

As some of you know, I run Linux/XP as a dual boot set up and other than the initial interest in something other than XP, the file structure is probably the most confusing for Windows users to understand. Linux uses terms like /home, /usr, etc, as directories and Windows uses My Computer, My Documents, Program Files and so on, and this is something I found on the net to help you understand how those two different OS' place files in the file tree.

There are several differences between windows and linux filesystem structure. these differences are the way linux ( and other unix os ) protect against both data loss and filesystem corruption.

t begin with a basic terminology definition ( most likely not needed, but included for completeness )

root is both the system admin, and the foundation of the file system. the differentiation is:
root = system admin
/ = foundation of file system

Directory: a folder on a partition. the biggest difference is a directory can be a partition name as well, when this happens accessing the directory is changing drives in windows.

filesystem type: this is the underlying structure of the filesystem, e2fs, reiserfs.... a windows version is fat, fat32 or ntfs.

partition: the same as windows, a section of physical hard drive set up to act as a hard drive in and of itself.

where a directory or partition has an * after it will be where the term is applying to more than one definition.

now that this is clarified, the linux names and the windows equivalents.

/ this is the same as the c drive with windows.

/bin this directory is used to store the command line executables that any use can access. comparable to c:\windows\command

/boot this directory can be, and usually is, a separate partition. this contains the kernel, and those parts of the bootloader that are not able to fit in the mbr ( master boot record )

/dev this directory is used to store the definitions of all known devices. it is not recommended to make this it's own partition.
this is most closely matched to device manager in windows, though this is not a good match, as it also resembles the c:\windows\system folder

/etc this directory is used to store system configuration data, such as what drivers, default fonts, default interface, default runlevel... are setup for the system. it contains the configuration defaults for every distribution included application. the closest windows has to this is the windows directory itself.

/home* this is comparable to the c:\documents and settings in windows nt family of products. it is recommended that this be a separate partition

/lib this is the core shared libraries and kernel modules. again this is the windows\system folder

/media a directory detailed to be used for removable media, such as floppys and cdroms, this is often not included. my computer in windows

/mnt this directory is always used, it is intended to hold mount points for filesystems, it is also used for the media mout points mentioned above. my computer in windows.

/opt* : Add-on application software packages.
by making this a partition, not just a directory in the / filesystem, you can control the space available for after market applications. unfortunately, this usage has not happened as much as it should have. c:\program files ( need I say more? Wink )

/proc this is a depreciated structure, it was used to store active processes. newer systems will no longer have this.

/root this is the system admin users home directory, locked to root access only. optionally, but not recommended, a separate partition it is comparable to c:\windows

/sbin this is the root user only executable tools.
comparable to c:\windows\command

/srv : Data for services provided by this system
no real windows equivalent, other than c:\windows

/tmp : Temporary files, optionally a separate partition. comparable to c:\windows\temp
I personally do make this a separate partition, as some cd burning software creates temporary disc images in this, and I can ensure enough space for this activity this way.

/usr this is the area that the actual programs, libraries sources for the kernel... are installed.
most 3rd party software also installs itself here, despite the existance of the /opt directory / partition. this is c:\program files there is an entire heirarchy under this, that breaks the contents into even smaller areas, the url supplied at the bottom has these details. I always set this as it's own partition and ensure it is twice the size required for the system ( those 3rd party apps you know. )

/var optionally it's own partion, recommended to be so. this is used to store logs, default for webserver root. public ftp mailcap ( email server ) in short to store anything that is changed regularly, and that a record is needed. most closely matched by c:\windows

and there you have a brief outline of what each of those cryptic directories are for on your linux workstation. this should help you to find your way around, if / when you are troubleshooting a system. ( like finding default font setting for xfs ( x font srever ) )
all of this, in technical detail, including options can be found: Here


Posted by: Jaqui


Back to top
View user's profile Visit poster's website Photo Gallery
Display posts from previous:   
Post new topic    Revive this topic    Printer Friendly Page    Forum Index ›  Software
Page 1 of 1
All times are GMT - 6 Hours

Archive Revive
Username:
This is an archived topic - your reply will not be appended here.
Instead, a new topic will be generated in the active forum.
The new topic will provide a reference link to this archived topic.