Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Friday, January 2, 2015

Hard links

A hard link is essentially a label or name assigned to a file. More than one filename can reference the same inode number, these files are said to be hard link. The data part of the file is called an inode. The inode carries the map of, where the data and the file permissions for the data exists.

If the original file is renamed, moved or deleted, the hard link is not broken. Hard links can not span disk drives, so we can not have a hard link on /dev/hdb, that refers to a program or file on /dev/hda.
$ln command is used to create multiple links of a file. To create a hard link called hd.file that points to a file called name.file. Ex:
$ln name.file hd.file

No comments:

Post a Comment