在Linux下使用文件鏈接而不是拷貝一個文件的好處是什麼?

 

What is the main advantage of creating links to a file instead of copies of the file?
A: 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.


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章