Let’s take a case,
We are working on updating particular software packages on Linux machine. And unexpectedly, a couple of important files got deleted by the administrator.
During this situations, hard linked files will come handy as a backup.
Generally, the hard link file is used for the backup purpose of small and important configuration files like /etc/passwd, /etc/shadow etc.
In the above-highlighted output,
We can see the properties of both files are exactly same including time stamp also.
Creating hard links for the important files is always the best practice.
Important point to remember about hard links:
It means, any changes made to actual file content will be updated in hard link file also.We don’t have to again go and edit it.