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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / venus

hard link will be created within the file system and both
have same inode, it is created by using ln command
syntax (ln source destination)
softlink is created across the file system have different
inodes created across the file system,created using
ln -s source destination
if source file is deleted destination will not be executed
detination contains only source path,source and destination
size may be differ from each other

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Solaris AllOther Interview Questions

what is the use of Jumpstart in Solaris and how can u configure it

2 Answers   IBM,


When would you want to reconfigure the kernel and how would you do it?

1 Answers  


what is use of boot -a

3 Answers   TCS,


How to set a passord without expiration?

5 Answers   HCL,


please give detail procedure how do replace failed disk under control of SVM and VxVm

3 Answers   TCS,






If you can ping a server, but can't telnet or ssh to it, whats wrong?

8 Answers   HCL,


What is process id of init daemon?

3 Answers  


how many layouts we have in veritas volume manager and what is the task of those layouts?

6 Answers   IBM,


When the system is hang?Unable to login,and console is available?what is the action u will take?

2 Answers  


what r the daemons have been started when u install Veritas

3 Answers   IBM,


Unable to telnet any of my servers in the network..? wht may be the reason

3 Answers   HP,


If root file system 100% full what you have to do?

5 Answers   Tech Mahindra,


Categories
  • Solaris Commands Interview Questions Solaris Commands (360)
  • Solaris Threads Interview Questions Solaris Threads (9)
  • Solaris IPC Interview Questions Solaris IPC (30)
  • Solaris Socket Programming Interview Questions Solaris Socket Programming (3)
  • Solaris System Calls Interview Questions Solaris System Calls (25)
  • Solaris General Interview Questions Solaris General (170)
  • Solaris AllOther Interview Questions Solaris AllOther (297)