Open main menu

CDOT Wiki β

Changes

Tutorial8: Links / Process Management

258 bytes removed, 15:19, 24 February 2021
Linking Files
===Linking Files===
 
 
'''inode (index) Number of a File:'''
<!--
-->
 
 
[[Image:inode-number-3.png|thumb|right|500px|The '''inode number''' is like a '''finger-print''', and is considered to be '''unique''' for each file on the Unix / Linux file system.]]
The '''inode number''' is like a '''finger-print''', and is considered to be '''unique''' for each file on the Unix / Linux file system.<br><br>Referring to the diagram on the far right, issuing the '''ls''' command with the '''-i''' option<br>displays the inode number for each file. You can see that <u>each</u> file<br>(whether it is a directory or regular file) has its own unique inode number.
'''Hard Links:'''
<table align="right"><tr valign="top"><td>[[Image:hard-link-1.png|thumb|right|300px|(Image licensed under [https://creativecommons.org/licenses/by-sa/3.0/ cc])<br>Image manipulated by author]]]</td><td>[[Image:inode-number-3.png|thumb|right|500px|'''Hard links''' share the '''same inode number'''. Hard links are very good for '''backup''' purposes.]]</td></tr></table>
A '''Hard link''' is a '''reference''' to the physical data on a file system.
13,420
edits