What is the difference between a hard link and a soft link in Unix?



What is the difference between a hard link and a soft link in Unix?..

Answer / nashiinformaticssolutions

• Hard Link: A direct pointer to the file’s data on the disk. Hard links share the same inode number as the original file and continue to exist even if the original file is deleted.
• Soft Link (Symbolic Link): A pointer to the file name rather than the file’s data. It is a separate file with its inode number. If the original file is deleted, the soft link becomes a dangling link, pointing to a non-existent file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Commands Interview Questions

What is awk good for?

0 Answers  


What is use of sed command?

12 Answers   BitWise, Infosys, Reliance,


Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.

1 Answers  


What is the significance of the 'tee' command?

0 Answers  


Is it inbetween or in between?

0 Answers  


what is the use of wild cards?

2 Answers  


What is grep in bash?

0 Answers  


how to remotely move a file ??? that mean how to move a file one machine to another machine ???

10 Answers   Altair,


Can you explain a little bit about command substitution?

0 Answers  


29. How to display top 10 users Who | head -10 | wc –w

4 Answers   TCS,


What is the command to find maximum memory taking process on the server?

0 Answers  


What is the function of grep command in unix?

0 Answers  


Categories