the difference between a soft link and a hard link?
Answer Posted / upendar
Soft Link: When we create a soft link, the link is created and stored in same address where the file is stored. The disadvantage of this type of link is if we delete the file the link becomes broken link and our data is lost.
Ex: ln -s data.text slink.text
If we delete data.text, slink.text link becomes broken link and our data lost.
Hard Link: When we create a hard link, the link is created and
stored in different address. But if we delete the file , the file is deleted and the link remain active so we won't loss the data.
Ex: ln data.text hlink.text
If we delete the file data.text, our data would be accessible through the hlink.text.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which command is used to restrict incoming messages?
What is the command to compare two files in unix?
How do I search for text in vi?
How do I open a port?
Does cp command overwrite files?
What command is used to switching between users in unix?
What is the command to find hidden files in the current directory?
What is the use of the command 'ls -x chapter[1-5]' ?
How is the command '$cat file2 ' different from '$cat >file2 and >> redirection operators ?
Write a command to display a file’s contents in various formats?
What is command substitution?
What does sed command do in unix?
What does touch command do in unix?
Is grep faster than awk?
What does find command return in unix?