Linux / UNIX advantage of creating soft links instead of copy a file
Q. What is the main advantage of creating soft / hard links to a file instead of copies of the file?
A. To make links between files you use ln command. To copy a file you use cp command. The main advantage is access permission. If you want to change the permissions for a a file called foo, 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.
Other advantages :
[a] Create a shortcut for example /webroot/home/httpd can be soft linked at /home/httpd
[b] Ease of management
[c] Save disk space etc
Please note that the link will show permissions of lrwxrwxrwx but that is for the link itself and not the access to the file.
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- How to: Linux / UNIX create soft link with ln command
- Unix Create a Symbolic Link
- How to create a hard links in Linux / UNIX
- Linux Copy File Command ( cp command examples )
- UNIX / Linux: copy master boot record (MBR)
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!




Recent Comments
Yesterday ~ 12 Comments
Yesterday ~ 7 Comments
Yesterday ~ 2 Comments
Yesterday ~ 3 Comments
Yesterday ~ 3 Comments