|
| ||||||||||
| Tags: directory, hard links, inodes, linux, operating system |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| How to use iNodes and Hard Links in Linux
Every file on your system by one inode represents (stands for "information node" (information node) and node is in English as "eye-" pronounced). An inode contains all information of the file. However, the inode is not immediately visible. Instead, each inode with the file system through one or more hard links linked. Hard links contain the name of the file and the inode number. The inode contains the file itself, for example, the location on the disk, permissions, file type and so on. The system can be found inode inode number of each basis. A single file can have more than one hard link. This means that multiple file names can refer to the same (they are the same inode number that is connected). It may, however, occur no hard links between file systems. All hard links to a particular file (inode) must be on the same file system, since each file has its own inodes for file system and duplicate inode numbers may be different there. ![]() |
|
#2
| |||
| |||
| Re: How to use iNodes and Hard Links in Linux
Since all hard links to a file on the same file reference, you can change the file a name and then make under a different name watch the changes with: Code: techarena @ ~ $ cd echo "hello"> first link Code: techarena @ ~ $ cat first link Code: techarena @ ~ $ ln first link second link Code: techarena @ ~ $ cat second link Code: techarena @ ~ $ ls-l Code: techarena @ ~ $ echo "change">> second link ![]() This is another shell redirection - do not take care of the details. We have the word "change"to second link attached. Check this with cat second link. Code: techarena @ ~ $ cat first link Code: techarena @ ~ $ chmod a + rwx first link Code: techarena @ ~ $ rm first link Code: techarena @ ~ $ rm second link |
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "How to use iNodes and Hard Links in Linux" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Email links and other links open in Mozilla Composer rather than SeaMonkey browser | aNNAd.K | Technology & Internet | 6 | 23-02-2012 11:35 AM |
| Two different hard disk for two different Linux | UbuntuOSX | Operating Systems | 3 | 16-10-2009 01:01 PM |
| Difference between "Junction points" and "Hard Links" ? | Carla Lacrosse | Windows XP Support | 7 | 02-03-2009 12:51 AM |
| Important Links for openSUSE Linux 11.1 release | Rudra.J | Operating Systems | 1 | 16-02-2009 10:39 PM |