Leonard Blaisdell <leo.DeleteThis@greatbasin.com> wrote:
> In article <5tKic.27928$aQ6.1567741@attbi_s51>, nospam.DeleteThis@geniegate.com wrote:
> It's also dangerous if you're not exactly sure what it means and want to
> learn what fsck means in a "crash course" from what I've read. Do you
> care to expound on it's benefits? If there weren't any, it wouldn't be
> available. I'm afraid enough of it to use symlinks only. I don't get it's
> use, even from the manpages. Duh on me. Scares me to death.
symlinks should be the choice 90% of the time, sometimes I think hard
links are more-or-less a way of learning how filesystems work.
Each filename is something akin to an entry in a table of numbers that
point to the physical area (on disc) where the data is stored.
Kind of like how DNS points the hostname to an IP number, the filesystem
points a filename to a number on the hard drive. (Because hard drives
really don't know about filenames, they only know sectors and cylinders)
A "hard link" is a bit like pointing 2 hostnames to the same IP.
Taking an entry out of DNS doesn't really delete the physical computer,
it just makes it difficult to find. If you had 2 (or more) hostnames
pointing to the same IP number, you could still access it through the
other hostname. Same is true for hardlinks, the url points to the "same
file" (or same host)
Even after all the hostnames are deleted, you can still access if by way
of IP number, this is kind of how files can be "undeleted". Until that
computer is re-allocated it's still available, it just doesn't have any
"links" pointing to it.
A "symbolic link" is kind of like a web page redirect. Usually works,
but not always. Less dangerous, but the browser (or kernel) has to open
the first url (symlink) read where it points to, go to the next url
(filename) and open it.
(well, in concept only, of course it's totally different, but they have
similiar implications.) You can actually store data *in* a symlink by
pointing it to a bogus filename if you wanted to. (the bogus filename is
the data to be stored) this can work nicely for storing PID's, lock
files, small bits of data and the like.
Jamie
--
<a style='text-decoration: underline;' href="http://www.geniegate.com" target="_blank">http://www.geniegate.com</a> Custom web programming
User Management Solutions Perl / PHP / Java / UNIX<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: ln unix command?