There are 2 kind of link 1) softlink 2) hardlink 1)softlink #ln –s /var/dir/dir2/dir3/dir4/file1 /home/file1 2)hardlink #ln /var/dir/dir1/dir2/dir3/dir4/file1 /var/file1 What is different between both link? 1)Hard link does not cross partition but softlink does. 2)It is linking of particular files shortcut. 3)Hard link does not depend on inod ,softlink depend on inod NO 4)hardlink is Exact replication of original. #ll (size come n byte) #ll –h (display size in k.b ) #mkdir –p /d1/d2/d3/d4/d5 #ll –i (destination to inote NO) #rm –rf dd (directory ,file or link name force fully delete) #unlink filename |
Linux- How to >