LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 09-29-2012, 08:30 PM   #16
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212

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, 03:42 AM   #17
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

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


Reply



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

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 05:51 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
Open Source Consulting | Domain Registration