ABC LEARN - Hard Link ln Command in Linux/Unix with examples - 0 views
-
abclearn on 04 Feb 17Hard linking a file 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. Note: Generally, the Hard link file is used for the backup purpose of small and important configuration files like /etc/passwd, /etc/shadow etc. Command Syntax: ln actual-file Hard link-file Example: [root@sys2 ~]# ln abclearn Hardln [root@sys2 ~]# ls -l Hardln -rw-r--r--. 2 root root 16 Jan 28 19:55 Hardln [root@sys2 ~]# ls -l abclearn -rw-r--r--. 2 root root 16 Jan 28 19:55 abclearn