LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 09-29-2012, 09:30 PM   #16
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,599

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670

Quote:
Originally Posted by jlliagre View Post
with hard links, you need to explore the whole file system to find files sharing the same inode.
With soft links, if you want to find out what other soft links point to the same file you need to explore the entire universe. (One could be on a USB flash drive in the back of a desk drawer in an office down the hall.)

For added enjoyment, consider a soft link that itself has multiple hard links. A soft link is, after all, an inode, and nothing says it can't be referenced by more than one directory entry. The real fun starts if it is a relative symlink. Now you've got a symlink that resolves to one of several places depending on the directory from which it was referenced.
 
Old 09-30-2012, 04:42 AM   #17
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,523

Rep: Reputation: 365Reputation: 365Reputation: 365Reputation: 365
Yes, another feature available with symlinks but not with hard links is the possibility to create relative links.
 
  


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
removing a soft link quietguy47 Linux - General 3 12-31-2011 10:34 PM
how to copy soft link hongxing Linux - Software 5 02-24-2010 08:14 AM
Soft Link and Hard Link Moataz Red Hat 1 04-25-2005 07:30 AM
Wat is a Soft Link? wed3k Linux - Newbie 2 08-19-2003 02:23 PM
Soft link help Pyroknight Linux - Newbie 1 02-06-2003 07:21 PM


All times are GMT -5. The time now is 03:47 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration