What is the purpose of ln command? What is the difference between a softlink and a hardlink?
Will softlinks/hardlinks help if the original files are deleted?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ln is a command to generate links. Links are like file alias.
A soft link is when you have a path to the file, so the file might exist or not, and can link files even if they are in different partitions.
Hard links are links to nodes that point to the same contents, so if you delete the original file the content will still exist.