LinuxQuestions.org
Help answer threads with 0 replies.
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 05-20-2005, 06:45 PM   #1
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Rep: Reputation: 30
links


What is the difference between a 'symbolic link' and a 'hard link'? Are these basically like a shortcut in windows?
 
Old 05-20-2005, 07:23 PM   #2
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
from tldp

hard link

A directory entry, which maps a filename to an inode, number. A file may have multiple names or hard links. The link count gives the number of names by which a file is accessible. Hard links do not allow multiple names for directories and do not allow multiple names in different filesystems


symbolic link or soft link

A special filetype, which is a small pointer file, allowing multiple names for the same file. Unlike hard links, symbolic links can be made for directories and can be made across filesystems. Commands that access the file being pointed to are said to follow the symbolic link. Commands that access the link itself do not follow the symbolic link.

Last edited by detpenguin; 05-20-2005 at 07:25 PM.
 
Old 05-20-2005, 09:09 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
This link points to a thread in which I gave a somewhat detailed discussion of hard links, soft links, and inodes. It should help you with your question.
 
Old 05-20-2005, 10:10 PM   #4
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,091

Rep: Reputation: 45
Quote:
Originally posted by btmiller
This link points to a thread in which I gave a somewhat detailed discussion of hard links, soft links, and inodes. It should help you with your question.


ohhhh...your explanation is much better than mine...the best i could find were definitions with no real explanation of what they do...nice job
 
  


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
Preserving number of links with 'cp'. ( preserve number of links ) Devyn Linux - General 7 09-16-2005 11:07 PM
links (hard links and soft links..) sachitha Programming 1 08-10-2005 01:10 PM
Sym links and hard links akudewan Linux - Newbie 4 02-09-2005 06:08 AM
how to change relitive links to specific links? wolfe2554 Linux - General 4 07-03-2004 01:40 AM
Links Section updated - Please add your Linux links. jeremy Linux - General 2 11-24-2001 12:35 PM


All times are GMT -5. The time now is 07:43 AM.

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