LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-13-2003, 10:27 AM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Quick Question About Links


I've been looking around trying to find information on links (because it's a pretty basic thing, so I should know). I haven't found any really well-written descriptions, and everything I read left me with this question unanswered:

What is the difference between a symbolic link and a hard link?

From what I've gathered thusfar from brief, poorly-written explinations of the difference a symbolic link is actually a file while a hard link is not. With a symbolic link the OS looks at the file allocation table, then goes to the actual symbolic link file, and then reads the file which points it to the correct destination. On the other hand, with a hard link the OS looks at the FAT and the entry for the hard link does not point to a separate file, it points to the destination directly from the FAT. As in the FAT entry for the destination and the FAT entry for the hard link point to the same place.

Is this accurate? If not, could someone explain it better than the junk I've been sifting through?
 
Old 02-13-2003, 10:32 AM   #2
rzee
LQ Newbie
 
Registered: Feb 2003
Location: NY
Distribution: Mandrake
Posts: 17

Rep: Reputation: 0
i think if you delete a hard link you are also deleting the actual file.
 
Old 02-13-2003, 11:32 AM   #3
isajera
Senior Member
 
Registered: Jun 2001
Posts: 1,635

Rep: Reputation: 45
no - i don't think that's it. (i used to have a much better grasp on this, but i think i remember correctly) - a symbolic link is a pretty easy concept - it's just a pointer that redirects any request for a file. but with a symbolic link, there's no guarantee that the file will actually be there. it could be a pointer to nowhere.

a hard link is just like the original link - the o/s keeps track of all the hard links to a file, so that if one gets deleted, the actual file is still there. if a hard link is made to a file, and the original link is deleted. it's just like moving the file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
links (hard links and soft links..) sachitha Programming 1 08-10-2005 01:10 PM
Links/Lynx Browser - Fonts Question rvijay Linux - Software 1 08-09-2005 04:01 AM
Quick question about soft links Hockeyfan Linux - General 1 02-21-2005 02:55 AM
strange question regarding symbolic links and apache drisay Slackware 3 11-16-2004 12:14 PM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 08:19 AM


All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration