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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the md command do?

794


What is a command and examples?

840


What are the general commands in using unix os for a beginner?

829


How do I open a port?

785


How can you see the command line history?

844


Why is it called grep?

767


What is awk good for?

803


What is pipe command in unix?

915


Which unix command lists files/folders in alphabetical order?

1264


What are bash commands?

818


Which command will print your home directory on screen?

804


Write a command to display a file’s contents in various formats?

871


Write a command to kill the last background job?

816


How to find $ai_serual resolved path by using unix

1284


what is the advaantage of each user having its own copy of the shell?

2314