Joel Liu's Library tagged → View Popular, Search in Google
-
Hard links are created with the ln command. For example, the following would create a hard link named hlink1 to a file named file1, both in the current directory (i.e., the directory in which the user is currently working):
ln file1 hlink1When a hard link is created, there is no obvious indication that it is any different from any other file. That is, hard links appear to be files of the same type as their target files (i.e., the files to which they are linked) when they are viewed with commands such as ls (i.e., list) and file (which is used to determine the type of any specified files). Likewise, when viewed in a GUI (graphical user interface), the icons for hard links are identical to those for their target files.
That the initial name of a file and all hard links to that file all share the same inode can be clearly seen by using the ls command with its -i (i.e., inode) option. Thus, for example, the following would show that the inode numbers of file1 and hlink1 from the above example are identical:
ls -i file1 hlink1
Top Contributors
Groups interested in ln
-
LN Israel Palestine
Items: 2 | Visits: 1
Created by: sondangs way
-
Contact Details of I.s. International
"Contact Person : Mr.Syed Hu...
Items: 1 | Visits: 1
Created by: Scho Refi
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo
