what are soft links and hard links, and differentiate them.

Answer Posted / rahmad

soft link :
we can create soft link by using #ln -s command
we can create soft link,if the source file doesnt exist.
If the source file delete,we cannot access the content.But
the link exist.we can create a link file which is belong to
another file system,another directory.
Soft link doesnt share the inode number.if u issue ls -l
command l in the first column display the file is a soft
link.
Hard link:
#ln <source file> <link>
we cannot link the file,if the file doesnt exist.
we can link the file with in a directory.
if the source file delete,we can view the content of the
link file..
Hd share the inode number.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi, I need information regarding LDOMS.Like What is LDOMS ,Creation of LDOMS, errors on LDOMS, troubleshooting LDOMS...etc.... pls post the info. Regards, Naresh

2837


What is cachefs?

2019


How to create a gateway?

6611


what is mean by netfmd in sun cluster what is the use of netfmd and what is the relation between ccd and netfmd?

2373


hi to all,, i need few real time issues please provide me,, if you have any,,,

1830






How do u know that,what patch can be applicable on the system?

1898


Local zone in shutting down state.how to bring state of zone to installed?

1738


What is the zone in DNS?

1985


how can u give space garentee for volume in netapp storage

2902


In a two node cluster i have typed #hastart command in one node.The cluster is starting in second node also,what is going in background?

1845


What is the use of Sam utility in solaris

2472


when i am starting solaris10 with 'fail safe mode' on intel machine it is asking "#starting shell".what is it and how to solve this problem?

2119