What is the main advantage of creating links to a file instead of copies of the file in linux

What is the main advantage of creating links to a file instead of copies of the file in linux?

Question :What is the main advantage of creating links to a file instead of copies of the file?
Answer :The main advantage is not really that it saves disk space (though it does that too) but, rather, that a change of permissions on the file is applied to all the link access points. The link will show permissions of lrwxrwxrwx but that is for the link itself and not the access to the file to which the link points. Thus if you want to change the permissions for a command, such as su, you only have to do it on the original. With copies you have to find all of the copies and change permission on each of the copies.
Keywords:
linux hard link
soft link linux
how to check hard link in linux
why use hard links linux
linux symbolic link explained
difference hard soft link linux
linux hard link directory example
how to identify soft link and hardlink
linux hard link directory
how to create hard link in linux
linux soft link directory
use of hard link in linux
linux hard link directory tree
linux hard link directory example
how to check hard link in linux
soft link in linux

No comments: