 |
26-11-2006, 10:55 PM
|
#1 (permalink)
|
|
The No.1 Stupid
Join Date: May 2005
Location: CYBERYARD
Posts: 1,708
|
How linux manages without Registry ????
Hi friends ,
As far as I know there is no such thing in linux as registry ( regedit.exe) in windows. Now I wanna know if registry is such an imp part in windows , how linux manages without registry ???
__________________
n00b forever...
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
26-11-2006, 11:26 PM
|
#2 (permalink)
|
|
String Phreak
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
|
Re: How linux manages without Registry ????
As far as I remember it, it does it through the use of inodes. Google for it "linux+inodes" u'll find a lot!
__________________
Bad Bad server.....No candy for u!
|
|
|
27-11-2006, 12:03 AM
|
#3 (permalink)
|
|
Just another linux lover.
Join Date: Jun 2006
Location: Bangalore, KA
Posts: 562
|
Re: How linux manages without Registry ????
AFAIK Linux puts all its configuration in plane text files located in your home directory or /etc directory...
I'm glad there is no registry in Linux, just plain, understandable and readable text files. I think the registry is one of the worst implementations of a centralized configuration. It totally sucks...
__________________
Today is a most unusual day, because we have never lived it before; we will never live it again; it is the only day we have.
(Registered Linux User #432737 - subratabera.blogspot.com)
|
|
|
27-11-2006, 02:38 AM
|
#4 (permalink)
|
|
El mooooo
Join Date: Jan 2006
Location: India
Posts: 1,414
|
Re: How linux manages without Registry ????
Quote:
|
Originally Posted by subratabera
AFAIK Linux puts all its configuration in plane text files located in your home directory or /etc directory...
|
^ Absolutely...
Also, all the user level changes you make in a particular application are stored in hidden directories under your home directory. This makes it easier for you to return to default settings. Just delete the relevant hidden directory...the application will reach its default state and all the needed conf files will be recreated on next launch of the app.
|
|
|
27-11-2006, 11:33 AM
|
#5 (permalink)
|
|
Wise Old Owl
Join Date: Nov 2004
Location: Hyderabad
Posts: 1,096
|
Re: How linux manages without Registry ????
and there are a few gui editors availables for these configurations like there's gconf-editor for almost all gnome applications.
__________________
Sometime you'll think you understand everything
...Then you'll regain consciousness
|
|
|
27-11-2006, 12:53 PM
|
#6 (permalink)
|
|
Wise Old Owl
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
|
Re: How linux manages without Registry ????
That's right. If you are using GNOME there is gconf-editor. This is very similar to a Registry in WIndows!!
$ gconf-editor
Actually Linux O.S creates it's own configuration text files that start with '.' (these are hidden files) that are
stored in your '/home/<loginname>' directory. Press Ctrl + H to view the hidden files. Press the same keys
again, all the hidden files disappear.
__________________
* Imagination is more important than knowledge.
-Albert Einstein
Last edited by JGuru; 27-11-2006 at 12:58 PM.
|
|
|
27-11-2006, 01:16 PM
|
#7 (permalink)
|
|
The No.1 Stupid
Join Date: May 2005
Location: CYBERYARD
Posts: 1,708
|
Re: How linux manages without Registry ????
thanx guys. I got the point .
@JGURU , I checked gconf-editor and got my answer. Thanx buddy.
__________________
n00b forever...
|
|
|
27-11-2006, 10:24 PM
|
#8 (permalink)
|
|
BE FREE
Join Date: Apr 2005
Location: Akash Ganga
Posts: 1,565
|
Re: How linux manages without Registry ????
what of disk clean or defragmentation, why is it required in windows and not in linux?
__________________
"To know that we know what we know, and to know that we do not know what we do not know, that is true knowledge." ~ Copernicus
|
|
|
27-11-2006, 10:36 PM
|
#9 (permalink)
|
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,536
|
Re: How linux manages without Registry ????
Linux file systems are less fragmented afaik for eg:ext2/3 at max can get fragmented to approx 12% and in normal circumstances no defragmentation needed,though "defrag" tool is available for defragmenting ext2 filesystem.
read here:
Quote:
7.3. Some facts about file systems and fragmentation
Disk space is administered by the operating system in units of blocks and
fragments of blocks. In ext2, fragments and blocks have to be of the same
size, so we can limit our discussion to blocks.
Files come in any size. They don't end on block boundaries. So with every
file a part of the last block of every file is wasted. Assuming that file
sizes are random, there is approximately a half block of waste for each file
on your disk. Tanenbaum calls this "internal fragmentation" in his book
"Operating Systems".
You can guess the number of files on your disk by the number of allocated
inodes on a disk. On my disk
# df -i
Filesystem Inodes IUsed IFree %IUsed Mounted on
/dev/hda3 64256 12234 52022 19% /
/dev/hda5 96000 43058 52942 45% /var
there are about 12000 files on / and about 44000 files on /var. At a block
size of 1 KB, about 6+22 = 28 MB of disk space are lost in the tail blocks of
files. Had I chosen a block size of 4 KB, I had lost 4 times this space.
Data transfer is faster for large contiguous chunks of data, though. That's
why ext2 tries to preallocate space in units of 8 contigous blocks for
growing files. Unused preallocation is released when the file is closed, so
no space is wasted.
Noncontiguous placement of blocks in a file is bad for performance, since
files are often accessed in a sequential manner. It forces the operating
system to split a disk access and the disk to move the head. This is called
"external fragmentation" or simply "fragmentation" and is a common problem
with MS-DOS file systems. In conjunction with the abysmal buffer cache used
by MS-DOS, the effects of file fragmentation on performance are very
noticeable. DOS users are accustomed to defragging their disks every few
weeks and some have even developed some ritualistic beliefs regarding
defragmentation.
None of these habits should be carried over to Linux and ext2. Linux native
file systems do not need defragmentation under normal use and this includes
any condition with at least 5% of free space on a disk. There is a
defragmentation tool for ext2 called defrag, but users are cautioned against
casual use. A power outage during such an operation can trash your file
system. Since you need to back up your data anyway, simply writing back from
your copy will do the job.
The MS-DOS file system is also known to lose large amounts of disk space due
to internal fragmentation. For partitions larger than 256 MB, DOS block sizes
grow so large that they are no longer useful (This has been corrected to some
extent with FAT32). Ext2 does not force you to choose large blocks for large
file systems, except for very large file systems in the 0.5 TB range (that's
terabytes with 1 TB equaling 1024 GB) and above, where small block sizes
become inefficient. So unlike DOS there is no need to split up large disks
into multiple partitions to keep block size down.
Use a 1Kb block size if you have many small files. For large partitions, 4Kb
blocks are fine.
|
source:
http://linuxplanet.com/linuxplanet/tutorials/3174/8/
Also:
http://linuxfinances.info/info/defrag.html
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
|
|
|
27-11-2006, 11:15 PM
|
#10 (permalink)
|
|
BE FREE
Join Date: Apr 2005
Location: Akash Ganga
Posts: 1,565
|
Re: How linux manages without Registry ????
thanks for the info.
__________________
"To know that we know what we know, and to know that we do not know what we do not know, that is true knowledge." ~ Copernicus
|
|
|
04-12-2006, 07:30 PM
|
#11 (permalink)
|
|
The Thread Killer >:)
Join Date: Apr 2006
Location: Bangalore
Posts: 1,185
|
Re: How linux manages without Registry ????
I was thinking about this and I got the answer. Nice  Very informative
__________________
Want to make this world a better place? Then, start seeding and don't be just a leecher :)
|
|
|
04-12-2006, 08:08 PM
|
#12 (permalink)
|
|
Commander in Chief
Join Date: Jul 2005
Posts: 6,658
|
Re: How linux manages without Registry ????
Guess Vishal wont come to Linux then?
__________________
Harsh J
www.harshj.com
|
|
|
04-12-2006, 08:28 PM
|
#13 (permalink)
|
|
GaurishSharma.com
Join Date: May 2005
Location: Jaipur
Posts: 4,116
|
Re: How linux manages without Registry ????
lol
but his increasing fan is envy for me, gosh he is a celeb in unreal world
|
|
|
04-12-2006, 09:50 PM
|
#14 (permalink)
|
|
Wise Old Owl
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
|
Re: How linux manages without Registry ????
@Qwerty, @Vishal will definitely use Linux & Vista. Ofcourse he can edit a Registry if
he installs Wine or CrossOver Office!!! There is also 'gconf-editor' that's very similar
to a Windows Registry.
__________________
* Imagination is more important than knowledge.
-Albert Einstein
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|