Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Links
1. How Linux allows
us to Remove
Files that are in
use?
Suresh Krishna
1 / 10
file:///home/user/Desktop/Links/links.html#title-slide
1 of 10 How Linux allows us to Remove Files that are in...
2. Links in Linux
Hard Links
Soft Links
Removal of a File
Total Anhilation
Table of Content
1 / 10
file:///home/user/Desktop/Links/links.html#title-slide
2 of 10 How Linux allows us to Remove Files that are in...
3. Every file in linux is a link to the physical content on disk.
These files point to the inode table that has corresponding
meta-datas for each content.
Link counts are number of links made to file’s content.
Links in Linux
1 / 10
file:///home/user/Desktop/Links/links.html#title-slide
3 of 10 How Linux allows us to Remove Files that are in...
4. These are links which point directly to the inode and access the
physical data.
The maximum number of hard links to a file is limited by the
reference counter.
Hard Links
1 / 10
file:///home/user/Desktop/Links/links.html#title-slide
4 of 10 How Linux allows us to Remove Files that are in...
5. These links do not point to the physical data on disk.
They instead contains the reference to another file.
It contains the path to the file.
Soft Links
1 / 10
file:///home/user/Desktop/Links/links.html#title-slide
5 of 10 How Linux allows us to Remove Files that are in...
6. Lets create a file "file1.txt"
Now put some data into him.
Lets create a hard link "file2.txt" to the contents he is pointing to.
Removal of a File
1 / 10
file:///home/user/Desktop/Links/links.html#title-slide
6 of 10 How Linux allows us to Remove Files that are in...
7. Now we shall remove the "file1.txt".
Removal of a File
1 / 10
file:///home/user/Desktop/Links/links.html#title-slide
7 of 10 How Linux allows us to Remove Files that are in...
8. The contents are still on disk.
Lets remove the "file2.txt" too.
Removal of a File
1 / 10
file:///home/user/Desktop/Links/links.html#title-slide
8 of 10 How Linux allows us to Remove Files that are in...
9. Let’s destroy a system.
In a Virtual Environment.
Total Anhilation
1 / 10
file:///home/user/Desktop/Links/links.html#title-slide
9 of 10 How Linux allows us to Remove Files that are in...
10. Thank You!
1 / 10
file:///home/user/Desktop/Links/links.html#title-slide
10 of 10 How Linux allows us to Remove Files that are in...