You are on page 1of 4

1

1
Hardlink vs Softlink

HardLink SoftLink

Original and link file will Inode no. of the link file
have same inode no. will be different
It cannot be created It can be created across
across the partitions the partitions
If original file is deleted If original file is deleted
then also the link file will the link file will not be
be accessible accessible
Editing of original file will Editing of original file will
replicate in the linked file replicate in the linked file
Size of Hardlink file is Size of Softlink file is
same as original file. smaller than original file.
2

2
Links Commands

To
Toconfigure
configurehardlink
hardlink
[root@comp1
[root@comp1 ~]#ln <sourcefile>
~]#ln <source file> <destination
<destinationfile>
file>

To
Toconfigure
configure softlink
softlink
[root@comp1
[root@comp1~]#ln
~]#ln -s
-s <source
<sourcefile>
file> <destination
<destinationfile>
file>

3
Change Owner / Group

To
Tochange
changeowner/group
owner/groupof
ofthe
thefile/directory
file/directory
[root@comp1
[root@comp1~]#chown
~]#chown <username:groupname>
<username:groupname> <file/directory>
<file/directory>

To
Tochange
changegroup
groupof
ofthe
thefile/directory
file/directory
[root@comp1
[root@comp1~]#chgrp
~]#chgrp<groupname>
<groupname><file/directory>
<file/directory>

You might also like