Home UNIX Explain links(hard links) and symbolic links(Soft links)?
Explain links(hard links) and symbolic links(Soft links)? E-mail
User Rating: / 0
PoorBest 
Hard links: a hard link is a pointer to the file's i-node. cat file1.txt The file file1.txt creating a hard link ln file1.txt file2.txt The two names file1.txt and file2.txt now refer to the same data: cat file2.txt The file file1.txt If we modify the contents of file file2.txt, then we also modify the contents of file file1.txt: Symbolic link(Soft link) :a symbolic link is like a pointer to the pointer to the file's contents. For instance, supposed that in the previous example, we had used the -s option of the ln to create a soft link: ln -s file1.txt file3.txt If we remove the original file file1 then we can not access its data through a symbolic link.But if we can access the data of file one using the hardlink file2 as hard link have direct pointer to the file data itself.
Comments
Search
Only registered users can write comments!

3.26 Copyright (C) 2008 Compojoom.com / Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 
 

Related links

Related Links:

Related Images

Related Links: