Q5
What is the difference between a soft link and a hard link?
💬Answer
- Hard Link:
- A direct reference/pointer to the same file data on disk (inode).
- Even if the original file is deleted, the data remains accessible through the hard link.
- Shares the exact same inode as the original file.
- Soft Link (Symlink):
- A shortcut pointing to the target file path.
- If the original file is deleted, the link breaks.
- Has a different inode number than the original file.
Related Linux Questions
View All LinuxQuestions →Q1
Explain what Linux is and why it is widely used in DevOps environments.
Q2What is the Linux kernel and what role does it play in the operating system?
Q3Explain the Linux filesystem hierarchy and the purpose of /etc, /var, /home, /tmp, and /usr.
Q4What happens internally when you run the `ls` command in Linux?

Created by
Apurv Gujjar
DevOps & Cloud Engineer
Specialized in:DevOpsAWSGCPKubernetesTerraformDocker
View Portfolio